mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
.
This commit is contained in:
parent
5210b2c5c4
commit
53ecb314f8
2 changed files with 7 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Http with Swagger example
|
||||
# reitit-http example
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -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}))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue