removed wildcard for views/index.html

This commit is contained in:
tmshv committed 2015-02-28 06:28:14 +03:00
1 parent 737bebec15
commit 6c27308c07
1 file changed
+13 -1
+13 -1
View File
@@ -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"));
});