Fix index.html breakage

This commit is contained in:
Calvin Montgomery 2013-07-19 21:59:39 -04:00
parent a25b2fdadf
commit d56d46c608
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ var Server = {
this.api.handle(req.url.substring(5), req, res);
}.bind(this));
this.app.get("/", function (req, res, next) {
res.sendfile(__dirname + "/www/index.html");
});
// default path
this.app.get("/:thing(*)", function (req, res, next) {
var root = __dirname + "/www/",