|
|
@ -37,7 +37,7 @@ app.get( '/suggest', sanitisers.suggest.middleware, controllers.suggest() ); |
|
|
|
app.get( '/search', sanitisers.search.middleware, middlewares.search.middleware, controllers.search() ); |
|
|
|
app.get( '/search', sanitisers.search.middleware, middlewares.search.middleware, controllers.search() ); |
|
|
|
|
|
|
|
|
|
|
|
// reverse API
|
|
|
|
// reverse API
|
|
|
|
app.get( '/reverse', sanitisers.reverse.middleware, controllers.search(undefined, require('query/reverse')) ); |
|
|
|
app.get( '/reverse', sanitisers.reverse.middleware, controllers.search(undefined, require('./query/reverse')) ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** ----------------------- error middleware ----------------------- **/ |
|
|
|
/** ----------------------- error middleware ----------------------- **/ |
|
|
|