make bonfire dynamically direct to best subsequent bonfire after completion

This commit is contained in:
Michael Q Larson
2015-01-24 14:29:50 -08:00
parent 1b75a6a7b8
commit c4bd0e4dc3
4 changed files with 80 additions and 5 deletions

3
app.js
View File

@ -258,8 +258,9 @@ app.get('/account/api', userController.getAccountAngular);
app.get('/bonfire', bonfireController.index);
app.get(
'/bonfires/:bonfireNumber',
bonfireController.returnBonfire
bonfireController.returnIndividualBonfire
);
app.get('/bonfires', bonfireController.returnBonfire);
// Unique Check API route
app.get('/api/checkUniqueUsername/:username', userController.checkUniqueUsername);