mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Merge branch 'zengxinhui-patch-2'
This commit is contained in:
commit
153eaaf2b0
1 changed files with 0 additions and 8 deletions
|
|
@ -63,14 +63,6 @@ Route names:
|
|||
; [:user/ping :user/user]
|
||||
```
|
||||
|
||||
The compiled route tree:
|
||||
|
||||
```clj
|
||||
(r/routes router)
|
||||
; [["/api/ping" {:name :user/ping}]
|
||||
; ["/api/user/:id" {:name :user/user}]]
|
||||
```
|
||||
|
||||
### Composing
|
||||
|
||||
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