Merge branch 'master' of github.com:psychobunny/node-forum

This commit is contained in:
Julian Lam
2013-04-22 15:03:12 -04:00
8 changed files with 92 additions and 13 deletions

View File

@@ -16,6 +16,13 @@ var express = require('express'),
res.send(templates['header'] + templates['home'] + templates['footer']);
});
app.get('/login', function(req, res) {
var body = templates['header'] + templates['login'] + templates['footer'];
res.setHeader('Content-Type', 'text/html');
res.setHeader('Content-Length', body.length);
res.end(body);
});
app.get('/register', function(req, res) {
res.send(templates['header'] + templates['register'] + templates['footer']);