mirror of https://github.com/calzoneman/sync.git
Fix GET /
This commit is contained in:
parent
aad1c2995c
commit
2cb8ab3a98
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue