mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-16 12:32:06 +00:00
Fix index.html breakage
This commit is contained in:
parent
a25b2fdadf
commit
d56d46c608
1 changed files with 4 additions and 0 deletions
|
|
@ -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/",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue