You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.
I'm using Hapi 16.5.2, with Glue.
When I register my routes using the options either it rejects my options or does not register the prefix.
Not sure if same behavior in v17.
example
//route prefix works but can not pass options without error
{
plugin: './path-to-plugin.js',
options: {
routes: { prefix: '/api/transaction/1' }
// lob_id: 1
}
},
//route prefix does not work. But can pass options.
{
plugin: {
register: './routes/development/transaction-pleasurecraft.js',
options: {
routes: { prefix: '/api/transaction/1' },
lob_id: 1
}
}
},
Thanks,
Jonathan
The text was updated successfully, but these errors were encountered:
{plugin: {register: './routes/development/transaction-pleasurecraft.js',// optional options passed to the plugin during registrationoptions: {lob_id: 1}},// optional registration options (different from the options passed to the registration function)options: {routes: {prefix: '/api/transaction/1'}}}
I'm using Hapi 16.5.2, with Glue.
When I register my routes using the options either it rejects my options or does not register the prefix.
Not sure if same behavior in v17.
example
//route prefix works but can not pass options without error
{
plugin: './path-to-plugin.js',
options: {
routes: { prefix: '/api/transaction/1' }
// lob_id: 1
}
},
//route prefix does not work. But can pass options.
{
plugin: {
register: './routes/development/transaction-pleasurecraft.js',
options: {
routes: { prefix: '/api/transaction/1' },
lob_id: 1
}
}
},
Thanks,
Jonathan
The text was updated successfully, but these errors were encountered: