src/prologue/core/group

Source   Edit  

Types

Group = ref object
  app*: Prologue
Grouping object Source   Edit  

Procs

func getAllInfos(group: Group; route: string;
                 middlewares: openArray[HandlerAsync]): (string,
    seq[HandlerAsync]) {....raises: [], tags: [], forbids: [].}
Retrieves group infos regarding middlewares and route. Source   Edit  
func newGroup(app: Prologue; route: string;
              middlewares: openArray[HandlerAsync] = @[]; parent: Group = nil): Group {.
    ...raises: [RouteError], tags: [], forbids: [].}
Creates a new Group. Source   Edit