Routers can be configured via options. The following options are available for the reitit.core/router:
| key | description | 
|---|---|
| :path | Base-path for routes | 
| :routes | Initial resolved routes (default []) | 
| :data | Initial route data (default {}) | 
| :spec | clojure.spec definition for a route data, see reitit.specon how to use this | 
| :syntax | Path-parameter syntax as keyword or set of keywords (default #{:bracket :colon}) | 
| :expand | Function of arg opts => datato expand route arg to route data (defaultreitit.core/expand) | 
| :coerce | Function of route opts => routeto coerce resolved route, can throw or returnnil | 
| :compile | Function of route opts => resultto compile a route handler | 
| :validate | Function of routes opts => ()to validate route (data) via side-effects | 
| :conflicts | Function of {route #{route}} => ()to handle conflicting routes | 
| :exception | Function of Exception => Exceptionto handle creation time exceptions (defaultreitit.exception/exception) | 
| :meta-merge | Function of left right => mergedto merge route-data (defaultmeta-merge.core/meta-merge) | 
| :update-paths | Sequence of Vectors with elements update-pathandfunction, used to preprocess route data | 
| :router | Function of routes opts => routerto override the actual router implementation | 
Can you improve this documentation? These fine people already did:
Tommi Reiman & Paulo FeodrippeEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |