From 407c32e782099627970cba7abbb73878a842caa5 Mon Sep 17 00:00:00 2001 From: Harish Krishna Date: Wed, 5 Nov 2014 16:43:19 -0500 Subject: [PATCH] suggest_near_me to /suggest/nearby and suggest_near_me.js to suggest_nearby.js --- app.js | 4 ++-- controller/{suggest_near_me.js => suggest_nearby.js} | 0 .../unit/controller/{suggest_near_me.js => suggest_nearby.js} | 0 test/unit/run.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename controller/{suggest_near_me.js => suggest_nearby.js} (100%) rename test/unit/controller/{suggest_near_me.js => suggest_nearby.js} (100%) 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'),