hapi-auto-route
hapi-auto-route copied to clipboard
Implement a configurable prefix per directory
As discussed in #20, we need to implement a prefix per directory for the plugin. I think that it's better to add this feature with the release 3.1.0
I think I need more details on this. The prefix feature isn't clear for me.
I think I need more details on this. The prefix feature isn't clear for me.
Suppose that you have a route object which is located in routes/users/confirm.js with route's path set to /confirm. If the use_prefix option of hapi-auto-route is sets to true then the path will set behind the scene to /users/confirm. That's it.