mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Pull in changes from private branch, including many bug fixes and -
drumrole - functioning facebook auth!!
This commit is contained in:
@@ -3,7 +3,7 @@ var scoring;
|
||||
|
||||
scoring = require('../app/scoring');
|
||||
|
||||
module.exports = function(expressApp) {
|
||||
module.exports = function(expressApp, root, derby) {
|
||||
expressApp.get('/:uid/up/:score?', function(req, res) {
|
||||
var model, score;
|
||||
score = parseInt(req.params.score) || 1;
|
||||
@@ -50,10 +50,10 @@ module.exports = function(expressApp) {
|
||||
staticPages = derby.createStatic(root);
|
||||
return staticPages.render('terms', res);
|
||||
});
|
||||
expressApp.all('*', function(req) {
|
||||
throw "404: " + req.url;
|
||||
});
|
||||
return expressApp.post('/', function(req) {
|
||||
expressApp.post('/', function(req) {
|
||||
return require('../app/reroll').stripeResponse(req);
|
||||
});
|
||||
return expressApp.all('*', function(req) {
|
||||
throw "404: " + req.url;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user