From d56d46c608b9b88bd3817eae43ba3f4b3ccd50d1 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Fri, 19 Jul 2013 21:59:39 -0400 Subject: [PATCH] Fix index.html breakage --- server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.js b/server.js index f832b34a..530ba79f 100644 --- a/server.js +++ b/server.js @@ -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/",