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
|
// api route
|
||||||
self.api = require("./api")(self);
|
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
|
// default route
|
||||||
self.express.get("/:thing(*)", function (req, res, next) {
|
self.express.get("/:thing(*)", function (req, res, next) {
|
||||||
var opts = {
|
var opts = {
|
||||||
|
|
Loading…
Reference in New Issue