mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 16:31:11 +00:00
Changelog
This commit is contained in:
parent
8b6bc9bb80
commit
c1bed9e9e6
1 changed files with 19 additions and 0 deletions
19
CHANGELOG.md
19
CHANGELOG.md
|
|
@ -6,6 +6,25 @@
|
||||||
* should only concern you if you are not using [Muuntaja](https://github.com/metosin/muuntaja).
|
* should only concern you if you are not using [Muuntaja](https://github.com/metosin/muuntaja).
|
||||||
* the `r/routes` returns just the path + data tuples as documented, not the compiled route results. To get the compiled results, use `r/compiled-routes` instead.
|
* the `r/routes` returns just the path + data tuples as documented, not the compiled route results. To get the compiled results, use `r/compiled-routes` instead.
|
||||||
|
|
||||||
|
## `reitit-swagger`
|
||||||
|
|
||||||
|
* In case of just one swagger api per router, the swagger api doesn't have to identified, so this works now:
|
||||||
|
|
||||||
|
```clj
|
||||||
|
(require '[reitit.ring :as ring])
|
||||||
|
(require '[reitit.swagger :as swagger])
|
||||||
|
(require '[reitit.swagger-ui :as swagger-ui])
|
||||||
|
|
||||||
|
(ring/ring-handler
|
||||||
|
(ring/router
|
||||||
|
[["/ping"
|
||||||
|
{:get (fn [_] {:status 200, :body "pong"})}]
|
||||||
|
["/swagger.json"
|
||||||
|
{:get {:no-doc true
|
||||||
|
:handler (swagger/create-swagger-handler)}}]])
|
||||||
|
(swagger-ui/create-swagger-ui-handler {:path "/"}))
|
||||||
|
```
|
||||||
|
|
||||||
## `reitit-swagger-ui`
|
## `reitit-swagger-ui`
|
||||||
|
|
||||||
* **BREAKING**: pass swagger-ui `:config` as-is (instead of mixed-casing keys) to swagger-ui, fixes [#109](https://github.com/metosin/reitit/issues/109):
|
* **BREAKING**: pass swagger-ui `:config` as-is (instead of mixed-casing keys) to swagger-ui, fixes [#109](https://github.com/metosin/reitit/issues/109):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue