mirror of
https://github.com/metosin/reitit.git
synced 2025-12-31 05:38:25 +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]]
|
||||
:get {:interceptors [[interceptor :get] async-handler]}}]]
|
||||
|
||||
;; optional interceptors for all matched routes
|
||||
{:data {:interceptors [[interceptor :router]]}})
|
||||
|
||||
;; optional default ring handler (if no routes have matched)
|
||||
(ring/create-default-handler)
|
||||
|
||||
;; optional top-level routes for both routes & default route
|
||||
{:interceptors [[interceptor :top]]}))
|
||||
|
||||
(defonce server (atom nil))
|
||||
|
|
|
|||
Loading…
Reference in a new issue