From 6c27308c07a2f26f859d95d800ce6b74596585bc Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sat, 28 Feb 2015 06:28:14 +0300 Subject: [PATCH] removed wildcard for views/index.html --- server.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index ef0692de..e9d4c66c 100644 --- a/server.js +++ b/server.js @@ -25,7 +25,19 @@ app.get("/document/*", function (req, res) { res.sendFile(path.join(__dirname, "views/document.html")); }); -app.get("*", function (req, res) { +app.get("/", function (req, res) { + res.sendFile(path.join(__dirname, "views/index.html")); +}); + +app.get("/schedule", function (req, res) { + res.sendFile(path.join(__dirname, "views/index.html")); +}); + +app.get("/team", function (req, res) { + res.sendFile(path.join(__dirname, "views/index.html")); +}); + +app.get("/docs", function (req, res) { res.sendFile(path.join(__dirname, "views/index.html")); });