Module

Payload.Server.Routable

Package
purescript-payload
Repository
hoodunit/purescript-payload

#Routable Source

class Routable routesSpec guardsSpec handlers guards | routesSpec guardsSpec -> handlers, guardsSpec -> guards where

Members

Instances

#RoutableList Source

class RoutableList (routesSpecList :: RowList Type) (basePath :: Symbol) (baseParams :: Row Type) (baseGuards :: GuardList) (guardsSpec :: Row Type) handlers guards | routesSpecList guardsSpec -> handlers, guardsSpec -> guards where

Members

Instances

#HandlerEntry Source

type HandlerEntry = { handler :: RequestUrl -> Request -> Response -> Aff Outcome, route :: List Segment }