Updated static index page

This commit is contained in:
Gregory Campbell
2021-11-23 15:07:19 -05:00
parent ba98c76e23
commit bd7ffcfc7a
+2 -1
View File
@@ -26,7 +26,8 @@ app.use(express.json()); //parses incoming requests with JSON payloads
app.use('/', routes); //to use the routes app.use('/', routes); //to use the routes
app.route('/') //Index page (static HTML)
app.route("/")
.get(function (req, res) { .get(function (req, res) {
res.sendFile(process.cwd() + '/index.html'); res.sendFile(process.cwd() + '/index.html');
}); });