Pull in changes from private branch, including many bug fixes and -

drumrole - functioning facebook auth!!
This commit is contained in:
Tyler Renelle
2012-09-15 15:06:51 -04:00
parent 10c5fecb75
commit bde52a01a9
11 changed files with 141 additions and 165 deletions

View File

@@ -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;
});
};