Fix GET /

This commit is contained in:
calzoneman 2013-10-11 18:20:52 -05:00
parent aad1c2995c
commit 2cb8ab3a98
1 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,14 @@ var Server = function (cfg) {
// api route
self.api = require("./api")(self);
// index
self.express.get("/", function (req, res, next) {
self.logHTTP(req);
res.sendfile("index.html", {
root: path.join(__dirname, "../www")
});
});
// default route
self.express.get("/:thing(*)", function (req, res, next) {
var opts = {