Created
December 6, 2016 18:20
-
-
Save genediazjr/282f318b7525f5e604658dea67c6d1ae to your computer and use it in GitHub Desktop.
List all routes from a hapi server
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
server.table()[0].table.forEach((route) => console.log(`${route.method}\t${route.path}`)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following works for Hapi 17: