Browse Source

suggest_near_me to /suggest/nearby and suggest_near_me.js to suggest_nearby.js

pull/40/head
Harish Krishna 10 years ago
parent
commit
407c32e782
  1. 4
      app.js
  2. 0
      controller/suggest_nearby.js
  3. 0
      test/unit/controller/suggest_nearby.js
  4. 2
      test/unit/run.js

4
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() );

0
controller/suggest_near_me.js → controller/suggest_nearby.js

0
test/unit/controller/suggest_near_me.js → test/unit/controller/suggest_nearby.js

2
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'),

Loading…
Cancel
Save