mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
Correct doc (obsolete example of middleware/create)
reitit.middleware/create has been removed at 927d4d43.
It seems reitit.middleware/map->Middleware is the right approach
instead.
More:
https://clojurians.slack.com/archives/C7YF1SBT3/p1561635497233300
This commit is contained in:
parent
2e85f44a7e
commit
f8b5e5dccf
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ The following produce identical middleware runtime function.
|
|||
(require '[reitit.middleware :as middleware])
|
||||
|
||||
(def wrap2
|
||||
(middleware/create
|
||||
(middleware/map->Middleware
|
||||
{:name ::wrap2
|
||||
:description "Middleware that does things."
|
||||
:wrap wrap}))
|
||||
|
|
|
|||
Loading…
Reference in a new issue