outmoded / lout

API documentation generator
Other
276 stars 49 forks source link

How do I exclude a route? #76

Closed jerrybroughton closed 10 years ago

jerrybroughton commented 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?

Marsup commented 10 years ago

Have a look here.

jerrybroughton commented 10 years ago

Thank You.. I figured out what I was doing wrong..