Skip to content

Commit

Permalink
defined router var so the merged route tree example returns the comme…
Browse files Browse the repository at this point in the history
…nted data structure
  • Loading branch information
keoko committed Mar 12, 2021
1 parent c5bb467 commit 26c4ebc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/basics/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ As routes are defined as plain data, it's easy to merge multiple route trees int
["/ping" ::ping]
["/db" ::db]])

(r/router
[admin-routes
user-routes])
(def router
(r/router
[admin-routes
user-routes]))
```

Merged route tree:
Expand Down

0 comments on commit 26c4ebc

Please sign in to comment.