added login, fixed gitignore

This commit is contained in:
psychobunny
2013-04-22 19:01:45 +00:00
parent 2cf0a9045a
commit 3d81f129e3
8 changed files with 92 additions and 15 deletions

View File

@@ -21,6 +21,13 @@ var express = require('express'),
res.end(body);
});
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) {
var body = templates['header'] + templates['register'] + templates['footer'];