Closed jerrybroughton closed 10 years ago
I am loving using lout with Hapi 6.x but I need to exclude some routes from the index. How do I do that?
I tried this route to exclude for example with a plugins: lout:false
{ method: 'GET', path: '/{path*}', handler: { directory: { path: './public', listing: false, index: true } }, plugins: { lout: false } }
but it complains with
Error: Invalid route options (/{path*}) { "method": "GET", "path": "/{path*}", "handler": { "directory": { "path": "./public", "listing": false, "index": true } }, "plugins" [1]: { "lout": false } }
What do I need to do to exclude a route?
Have a look here.
Thank You.. I figured out what I was doing wrong..
I am loving using lout with Hapi 6.x but I need to exclude some routes from the index. How do I do that?
I tried this route to exclude for example with a plugins: lout:false
but it complains with
What do I need to do to exclude a route?