mirror of
https://github.com/metosin/reitit.git
synced 2026-02-19 17:21:03 +00:00
Merge pull request #80 from MicSokoli/master
Define handler as function in docs
This commit is contained in:
commit
30274bf961
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ Ring-router adds support for `:handler` functions, `:middleware` and routing bas
|
|||
```clj
|
||||
(require '[reitit.ring :as ring])
|
||||
|
||||
(def handler [_]
|
||||
(defn handler [_]
|
||||
{:status 200, :body "ok"})
|
||||
|
||||
(defn wrap [handler id]
|
||||
|
|
|
|||
Loading…
Reference in a new issue