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