diff --git a/app.js b/app.js index 51eada83..21b465f0 100644 --- a/app.js +++ b/app.js @@ -22,7 +22,7 @@ var controllers = {}; controllers.index = require('./controller/index'); controllers.doc = require('./controller/doc'); 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'); /** ----------------------- routes ----------------------- **/ @@ -35,7 +35,7 @@ app.get( '/doc', sanitisers.doc.middleware, controllers.doc() ); // suggest API 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 app.get( '/search', sanitisers.search.middleware, controllers.search() ); diff --git a/controller/suggest_near_me.js b/controller/suggest_nearby.js similarity index 100% rename from controller/suggest_near_me.js rename to controller/suggest_nearby.js diff --git a/test/unit/controller/suggest_near_me.js b/test/unit/controller/suggest_nearby.js similarity index 100% rename from test/unit/controller/suggest_near_me.js rename to test/unit/controller/suggest_nearby.js diff --git a/test/unit/run.js b/test/unit/run.js index f828c6c5..4428903c 100644 --- a/test/unit/run.js +++ b/test/unit/run.js @@ -6,7 +6,7 @@ var tests = [ require('./controller/index'), require('./controller/doc'), require('./controller/suggest'), - require('./controller/suggest_near_me'), + require('./controller/suggest_nearby'), require('./controller/search'), require('./service/mget'), require('./service/search'),