forked from blallo/talk-hm-0x15
serve notes/multiple index document as html (closes #470)
This commit is contained in:
parent
f5a379b8a1
commit
8393efe8e9
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue