Wednesday 3 May 2017

Middleware to render a navigation index for an express application

I am looking for some node.js utility that automatically builds a navigation index based on the routes of an express application and renders it as an HTML view. This useful on development phase to check all endpoints provided by an express instance and perform some requests for those paths.

I know that an express instance stores all routes in _router property and I can parse this object and its stack to build an HTML view with links to the corresponding routes. However, I was wondering if there is already any library providing this feature?



via rollaeriu360

No comments:

Post a Comment