add 4 games

This commit is contained in:
Russell2259
2024-02-13 21:18:03 -07:00
parent 69aafc8d15
commit 9e8043dc7c
3 changed files with 23 additions and 3 deletions
+2 -2
View File
@@ -26,6 +26,8 @@ const swPaths = [
app.use(express.json());
api(app);
app.get('/cdn/*', cors({
origin: false
}), async (req, res, next) => {
@@ -47,8 +49,6 @@ app.get('/cdn/*', cors({
} else next();
});
api(app);
app.get('*', (req, res, next) => {
if (swPaths.includes(req.path)) res.setHeader('Service-Worker-Allowed', '/');