Fantom

 

const class

webmod::RouteMod

sys::Obj
  web::WebMod
    webmod::RouteMod

RouteMod routes a level of the URI path to sub-WebMods.

See pod doc

Slots

makeSource

new make(|This|? f)

Constructor with it-block.

onServiceSource

override Void onService()

Overrides web::Weblet.onService

Doc inherited from web::Weblet.onService

Service a web request. The default implementation routes to onGet, onPost, etc based on the request's method.

onStartSource

override Void onStart()

Call onStart on sub-mods.

onStopSource

override Void onStop()

Overrides web::WebMod.onStop

Call onStop on sub-mods.

routesSource

const Str:WebMod routes := [Str:WebMod][:]

Map of URI path names to sub-WebMods. The name "index" is used for requests to the RouteMod itself.