mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 17:01:11 +00:00
Define handler as function in docs
This commit is contained in:
parent
050075152d
commit
2cfb59ff3d
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
|
```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]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue