Merge pull request #80 from MicSokoli/master

Define handler as function in docs
This commit is contained in:
Tommi Reiman 2018-04-29 11:34:02 +03:00 committed by GitHub
commit 30274bf961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ Ring-router adds support for `:handler` functions, `:middleware` and routing bas
```clj ```clj
(require '[reitit.ring :as ring]) (require '[reitit.ring :as ring])
(def handler [_] (defn handler [_]
{:status 200, :body "ok"}) {:status 200, :body "ok"})
(defn wrap [handler id] (defn wrap [handler id]