Merge pull request #183 from metosin/swagger-docs

Docs: Add a note about Swagger needing Muuntaja
This commit is contained in:
Tommi Reiman 2018-11-22 10:36:12 +02:00 committed by GitHub
commit 8cc58df024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,10 @@ Webjars also hosts a [version](https://github.com/webjars/swagger-ui) of the swa
* two routes
* swagger-spec served from `"/swagger.json"`
* 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
(require '[reitit.ring :as ring])