Module

RoutingDuplexMiddleware

Package
erl-stetson
Repository
id3as/purescript-erl-stetson

#ModuleInfo Source

type ModuleInfo = { args :: Foreign, mod :: NativeModuleName }

#routes Source

routes :: forall t a. RouteDuplex t a -> Config a -> Env -> Env

#ExecuteResult Source

#Config Source

type Config a = { dispatch :: Req -> a -> Tuple2 Req (Either UnmatchedHandler ModuleInfo), unmatched :: RouteError -> UnmatchedHandler }