glimr/routing/router

Values

pub fn apply_middleware(
  route_req: route.RouteRequest,
  ctx: context,
  middleware: List(
    fn(
      request.Request(wisp.Connection),
      context,
      fn(request.Request(wisp.Connection)) -> response.Response(
        wisp.Body,
      ),
    ) -> response.Response(wisp.Body),
  ),
  handler: fn(route.RouteRequest, context) -> response.Response(
    wisp.Body,
  ),
) -> response.Response(wisp.Body)
pub fn find_matching_route_in_groups(
  route_groups: List(route.RouteGroup(context)),
  path: String,
  method: http.Method,
) -> Result(
  #(
    route.Route(context),
    dict.Dict(String, String),
    kernel.MiddlewareGroup,
  ),
  Nil,
)
pub fn get_all_routes(
  route_groups: List(route.RouteGroup(context)),
) -> List(route.Route(context))
pub fn matches_path(pattern: String, path: String) -> Bool
Search Document