hapijs / glue

Server composer for hapi.js
Other
245 stars 62 forks source link

how to pass routes: { prefix: '/prefix' } for object notation #45

Closed PavelPolyakov closed 8 years ago

PavelPolyakov commented 8 years ago

Hi,

In the documentation it's stated, that we can pass options for server.register when passing the plugin options as array, like this:

'./app/web/api/auth': [
                {routes: {prefix: '/auth'}, options: {}}
            ],

However, I assume it should be somehow possible to do the same, when registering the plugin with object as options, something like this:

'./app/web/api/users': {routes: {prefix: '/users'}},

However, it doesn't work. Any thoughts if it's possible?

Regards,

csrl commented 8 years ago

@PavelPolyakov see issue #31. This will be addressed in v3.0

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.