Skip to content
Snippets Groups Projects
Commit 8393efe8 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

serve notes/multiple index document as html (closes #470)

parent f5a379b8
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ app.configure(function() {
});
app.get("/", function(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'})
fs.createReadStream(opts.baseDir + '/index.html').pipe(res);
});
......
......@@ -30,6 +30,7 @@ app.configure(function() {
});
app.get("/", function(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'})
fs.createReadStream(opts.baseDir + '/index.html').pipe(res);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment