mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
Merge branch 'master' of github.com:psychobunny/node-forum
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user