mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 16:31:11 +00:00
duplicate r/routes output
Perhaps this is not needed as the same output is shown above close. Or the `nil`s need to be removed to match actual output. See PR513 https://github.com/metosin/reitit/pull/513
This commit is contained in:
parent
9f798c63c9
commit
59f4bf285a
1 changed files with 0 additions and 8 deletions
|
|
@ -63,14 +63,6 @@ Route names:
|
||||||
; [:user/ping :user/user]
|
; [:user/ping :user/user]
|
||||||
```
|
```
|
||||||
|
|
||||||
The compiled route tree:
|
|
||||||
|
|
||||||
```clj
|
|
||||||
(r/routes router)
|
|
||||||
; [["/api/ping" {:name :user/ping}]
|
|
||||||
; ["/api/user/:id" {:name :user/user}]]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Composing
|
### Composing
|
||||||
|
|
||||||
As routes are defined as plain data, it's easy to merge multiple route trees into a single router
|
As routes are defined as plain data, it's easy to merge multiple route trees into a single router
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue