Docs: Add a note about Swagger needing Muuntaja

This commit is contained in:
Miikka Koskinen 2018-11-22 09:23:13 +02:00
parent 0e73b883ed
commit d827f05a6a

View file

@ -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])