documentation

This commit is contained in:
Tommi Reiman 2018-08-31 11:16:36 +03:00
parent 9e0629a800
commit 40464ed371

View file

@ -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))