mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
close markdown row
This commit is contained in:
parent
c210e7f1c2
commit
91abf8db51
1 changed files with 10 additions and 10 deletions
|
|
@ -4,13 +4,13 @@ Routers can be configured via options. The following options are available for t
|
|||
|
||||
| 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.spec` on how to use this
|
||||
| `:expand` | Function of `arg opts => data` to expand route arg to route data (default `reitit.core/expand`)
|
||||
| `:coerce` | Function of `route opts => route` to coerce resolved route, can throw or return `nil`
|
||||
| `:compile` | Function of `route opts => result` to 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 (default `reitit.core/throw-on-conflicts!`)
|
||||
| `:router` | Function of `routes opts => router` to override the actual router implementation
|
||||
| `: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.spec` on how to use this |
|
||||
| `:expand` | Function of `arg opts => data` to expand route arg to route data (default `reitit.core/expand`) |
|
||||
| `:coerce` | Function of `route opts => route` to coerce resolved route, can throw or return `nil` |
|
||||
| `:compile` | Function of `route opts => result` to 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 (default `reitit.core/throw-on-conflicts!`) |
|
||||
| `:router` | Function of `routes opts => router` to override the actual router implementation |
|
||||
|
|
|
|||
Loading…
Reference in a new issue