Fix index.html breakage

This commit is contained in:
Calvin Montgomery 2013-07-19 21:59:39 -04:00
parent a25b2fdadf
commit d56d46c608

View file

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