-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a way to query all routes from a router
For example, ``` ctx.router.routes.map { it.path }.forEach { path -> P { Text(path) } } ``` might create entries like: /about /home /users/{user} There are no future guarantees about the ordering, but for now it is breadth-first, with siblings returned in alphabetical order.
- Loading branch information
1 parent
ffcab46
commit c9a8b5a
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters