2
1
mirror of https://github.com/s00500/nodeMessageBoard.git synced 2024-11-21 13:10:55 +00:00

more routingchanges

This commit is contained in:
Lukas Bachschwell 2016-06-28 20:15:57 +02:00
parent 92522aae02
commit e5a2a5888d

View File

@ -50,12 +50,19 @@ function sendJqueryUI(response) {
function sendClear(response) {
console.log("Request handler 'clear' was called.");
response.writeHead(200, {"Content-Type": "text/html"});
var html = fs.readFileSync(__dirname + "/clear.html")
var html = fs.readFileSync(__dirname + "/clear.html");
response.end(html);
}
function sendDemo(response) {
console.log("Request handler 'demo' was called.");
response.writeHead(200, {"Content-Type": "text/html"});
var html = fs.readFileSync(__dirname + "/demo.html");
response.end(html);
}
exports.sendClear = sendClear;
exports.sendDemo = sendDemo;
exports.sendBootstrap = sendBootstrap;