hapi-auto-route icon indicating copy to clipboard operation
hapi-auto-route copied to clipboard

Implement a configurable prefix per directory

Open sratsimba opened this issue 6 years ago • 2 comments

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

sratsimba avatar Dec 13 '19 07:12 sratsimba

I think I need more details on this. The prefix feature isn't clear for me.

OneHoopyFrood avatar Dec 16 '19 17:12 OneHoopyFrood

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.

sratsimba avatar Dec 19 '19 05:12 sratsimba