limosa
router-segments
DEPRECATED: replaced byFast router for both browser and server
See the auto-generated docs
How to use
; const routesLangsConfig = 'login' 'en' 'login' 'fr' 'connexion' 'post' 'en' 'post' 'fr' 'article' 'view' 'en' 'view' 'fr' 'afficher'; const routesTranslations = routesLangsConfig; const builder = routesTranslations 'en' 'fr';moduleexports = builderrouter; builder ;
Build a router
- Named parameter:
${name}
- Optional route part:
[]
like'/post[/${tagKey}]/${id}-${slug}'
- Special named parameters:
controller
,action
,queryString
,hash
.
Url Generator
router;// /post/001-a-slug