atlantis · Routing
class Route<C>
since 0.1.0-alpha.1linux
Constructors
new
new(string path, () => C factory, (C, Http::Context) => HttpResponse invoke)Fields
authMode
int authModeauthRole
string authRolefactory
() => C factoryinvoke
(C, Http::Context) => HttpResponse invokeisFragment
bool isFragmentpath
string pathrouteName
string routeNameverbs
int verbsMethods
actionKey
actionKey() -> stringauth
auth(string role) -> Route<C>fragment
fragment() -> Route<C>name
name(string n) -> Route<C>noAuth
noAuth() -> Route<C>requestType
requestType(int t) -> Route<C>requireAuth
requireAuth() -> Route<C>toHandler
toHandler() -> (Http::Context) => HttpResponse