|
|
@ -22,7 +22,7 @@ var controllers = {}; |
|
|
|
controllers.index = require('./controller/index'); |
|
|
|
controllers.index = require('./controller/index'); |
|
|
|
controllers.doc = require('./controller/doc'); |
|
|
|
controllers.doc = require('./controller/doc'); |
|
|
|
controllers.suggest = require('./controller/suggest'); |
|
|
|
controllers.suggest = require('./controller/suggest'); |
|
|
|
controllers.suggest_near_me = require('./controller/suggest_near_me'); |
|
|
|
controllers.suggest_nearby = require('./controller/suggest_nearby'); |
|
|
|
controllers.search = require('./controller/search'); |
|
|
|
controllers.search = require('./controller/search'); |
|
|
|
|
|
|
|
|
|
|
|
/** ----------------------- routes ----------------------- **/ |
|
|
|
/** ----------------------- routes ----------------------- **/ |
|
|
@ -35,7 +35,7 @@ app.get( '/doc', sanitisers.doc.middleware, controllers.doc() ); |
|
|
|
|
|
|
|
|
|
|
|
// suggest API
|
|
|
|
// suggest API
|
|
|
|
app.get( '/suggest', sanitisers.suggest.middleware, controllers.suggest() ); |
|
|
|
app.get( '/suggest', sanitisers.suggest.middleware, controllers.suggest() ); |
|
|
|
app.get( '/suggest_near_me', sanitisers.suggest.middleware, controllers.suggest_near_me() ); |
|
|
|
app.get( '/suggest/nearby', sanitisers.suggest.middleware, controllers.suggest_nearby() ); |
|
|
|
|
|
|
|
|
|
|
|
// search API
|
|
|
|
// search API
|
|
|
|
app.get( '/search', sanitisers.search.middleware, controllers.search() ); |
|
|
|
app.get( '/search', sanitisers.search.middleware, controllers.search() ); |
|
|
|