more work with reset page

This commit is contained in:
Julian Lam
2013-04-23 15:39:23 -04:00
parent 0e8c4f35cd
commit a73481af8b
6 changed files with 68 additions and 20 deletions

View File

@@ -26,10 +26,14 @@ var express = require('express'),
module.exports.init = function() {
// todo move some of this stuff into config.json
app.configure(function() {
app.use(express.favicon());
app.use(express.bodyParser());
app.use(express.cookieParser());
app.use(express.favicon()); // 2 args: string path and object options (i.e. expire time etc)
app.use(express.bodyParser()); // Puts POST vars in request.body
app.use(express.cookieParser()); // Presumably important
// Dunno wtf this does
// app.use(express.logger({ format: '\x1b[1m:method\x1b[0m \x1b[33m:url\x1b[0m :response-time ms' }));
// Useful if you want to use app.put and app.delete (instead of app.post all the time)
// app.use(express.methodOverride());
app.use(express.static(global.configuration.ROOT_DIRECTORY + '/public'));
});