mirror of
https://github.com/metosin/reitit.git
synced 2025-12-24 02:48:25 +00:00
Merge pull request #183 from metosin/swagger-docs
Docs: Add a note about Swagger needing Muuntaja
This commit is contained in:
commit
8cc58df024
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
|
||||
* 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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue