firstandthird / hapi-auto-loader

Hapi plugin to automatically load routes, methods, helpers and views
0 stars 0 forks source link

pass in namespace #15

Open jgallen23 opened 9 years ago

jgallen23 commented 9 years ago

would be nice to be able to pass in a namespace and then all routes and methods are prefixed with that. Not sure if views should be prefixed as well. I guess that would make sense. Biggest use case is when calling server.plugins['hapi-auto-loader'].load({}) inside of a plugin.

dawnerd commented 9 years ago

:+1: I think everything should be prefixed unless it has an absolute path, similar to routes.