mirror of
https://github.com/metosin/reitit.git
synced 2026-02-06 12:03:13 +00:00
documentation
This commit is contained in:
parent
9e0629a800
commit
40464ed371
1 changed files with 5 additions and 0 deletions
|
|
@ -35,8 +35,13 @@
|
||||||
{:interceptors [[interceptor :async]]
|
{:interceptors [[interceptor :async]]
|
||||||
:get {:interceptors [[interceptor :get] async-handler]}}]]
|
:get {:interceptors [[interceptor :get] async-handler]}}]]
|
||||||
|
|
||||||
|
;; optional interceptors for all matched routes
|
||||||
{:data {:interceptors [[interceptor :router]]}})
|
{:data {:interceptors [[interceptor :router]]}})
|
||||||
|
|
||||||
|
;; optional default ring handler (if no routes have matched)
|
||||||
(ring/create-default-handler)
|
(ring/create-default-handler)
|
||||||
|
|
||||||
|
;; optional top-level routes for both routes & default route
|
||||||
{:interceptors [[interceptor :top]]}))
|
{:interceptors [[interceptor :top]]}))
|
||||||
|
|
||||||
(defonce server (atom nil))
|
(defonce server (atom nil))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue