host compiled files
This commit is contained in:
@@ -26,6 +26,12 @@ app.all("*", function (req, res, next) {
|
||||
if (!serverStartupComplete)
|
||||
return res.send("Server is starting...");
|
||||
else return next();
|
||||
});
|
||||
|
||||
app.all("*", function (req, res, next) {
|
||||
if (!/^\/API\/.*/.test(req.url)) {
|
||||
return res.sendFile(path.join(__dirname, './frontend/index.html'));
|
||||
} else return next();
|
||||
})
|
||||
|
||||
app.get('/API/day', function (req, res) {
|
||||
|
||||
Reference in New Issue
Block a user