add 4 games
This commit is contained in:
+2
-2
@@ -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', '/');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user