Node.js based forum software built for the modern web
Merge branch 'master' of https://github.com/psychobunny/node-forum
psychobunny65b035c9c949
diff --cc src/webserver.jsindex 92ed61b7a4,9c1c3a0c37..d0b1e2ef0c--- a/src/webserver.js+++ b/src/webserver.js@@@ -15,25 -12,12 +12,19 @@@ var express = require('express')});app.get('/', function(req, res) {console.log(templates['header']);- var body = templates['header'] + templates['home'] + templates['footer'];- res.setHeader('Content-Type', 'text/html');- res.setHeader('Content-Length', body.length);- res.end(body);+ 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) {- var body = templates['header'] + templates['register'] + templates['footer'];- res.setHeader('Content-Type', 'text/html');- res.setHeader('Content-Length', body.length);- res.end(body);+ res.send(templates['header'] + templates['register'] + templates['footer']);});module.exports.init = function() {