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

View file

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