This commit is contained in:
Tommi Reiman 2018-08-25 16:30:16 +03:00
parent 5210b2c5c4
commit 53ecb314f8
2 changed files with 7 additions and 6 deletions

View file

@ -1,4 +1,4 @@
# Http with Swagger example # reitit-http example
## Usage ## Usage

View file

@ -32,14 +32,15 @@
:get {:interceptors [(interceptor :hello)] :get {:interceptors [(interceptor :hello)]
:handler handler}}] :handler handler}}]
["/future"
{:interceptors [(future-interceptor :future)]
:get {:interceptors [(future-interceptor :hello)]
:handler future-handler}}]
["/async" ["/async"
{:interceptors [(async-interceptor :async)] {:interceptors [(async-interceptor :async)]
:get {:interceptors [(async-interceptor :async-hello)] :get {:interceptors [(async-interceptor :async-hello)]
:handler async-handler}}] :handler async-handler}}]])
["/future"
{:interceptors [(future-interceptor :sync)]
:get {:interceptors [(future-interceptor :hello)]
:handler future-handler}}]])
(ring/create-default-handler) (ring/create-default-handler)
{:executor reitit.interceptor.sieppari/executor})) {:executor reitit.interceptor.sieppari/executor}))