mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21:11 +00:00
Docs: Add a note about Swagger needing Muuntaja
This commit is contained in:
parent
0e73b883ed
commit
d827f05a6a
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ Webjars also hosts a [version](https://github.com/webjars/swagger-ui) of the swa
|
||||||
* two routes
|
* two routes
|
||||||
* swagger-spec served from `"/swagger.json"`
|
* swagger-spec served from `"/swagger.json"`
|
||||||
* swagger-ui mounted to `"/"`
|
* swagger-ui mounted to `"/"`
|
||||||
|
* note that for real-world use, you need a [content-negation middleware][muuntaja] -
|
||||||
|
see the next example
|
||||||
|
|
||||||
|
[muuntaja]: ../ring/default_middleware.md#content-negotiation
|
||||||
|
|
||||||
```clj
|
```clj
|
||||||
(require '[reitit.ring :as ring])
|
(require '[reitit.ring :as ring])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue