From 53ecb314f87a66b734fd118937d9e31298e2afa5 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Sat, 25 Aug 2018 16:30:16 +0300 Subject: [PATCH] . --- examples/http/README.md | 2 +- examples/http/src/example/server.clj | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/http/README.md b/examples/http/README.md index a387b472..7ab378d6 100644 --- a/examples/http/README.md +++ b/examples/http/README.md @@ -1,4 +1,4 @@ -# Http with Swagger example +# reitit-http example ## Usage diff --git a/examples/http/src/example/server.clj b/examples/http/src/example/server.clj index 995bb9e2..f629a08b 100644 --- a/examples/http/src/example/server.clj +++ b/examples/http/src/example/server.clj @@ -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}))