diff --git a/server/index.js b/server/index.js index 3f22655..ef36d56 100644 --- a/server/index.js +++ b/server/index.js @@ -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', '/'); diff --git a/static/assets/JSON/changelog.json b/static/assets/JSON/changelog.json index 691a866..db8b864 100644 --- a/static/assets/JSON/changelog.json +++ b/static/assets/JSON/changelog.json @@ -1,7 +1,7 @@ [ { "date": "2/13/2024", - "simpleDescription": "Fix issues with the cdn and added 4 new games" + "simpleDescription": "Fix issues with the cdn and added 8 new games" }, { "date": "2/12/2024", diff --git a/static/assets/JSON/games.json b/static/assets/JSON/games.json index ddb92c8..e9aa2bb 100644 --- a/static/assets/JSON/games.json +++ b/static/assets/JSON/games.json @@ -685,5 +685,25 @@ "name": "Deepest Sword", "target": "https://html-classic.itch.zone/html/4017918/index.html", "image": "https://images.sftcdn.net/images/t_app-icon-m/p/f97701fd-a064-4cac-9247-9793e72d8220/2271577798/deepest-sword-logo" + }, + { + "name": "Tunnel Rush Mania", + "target": "https://html5.gamemonetize.co/2fp4sd31llh6u6vjxe1wxbx8meapsgop/", + "image": "https://play-lh.googleusercontent.com/tl2qr3PCg-vpzloUgjMAY9eXz9y58Gdmb77_d9RbmrWoQu8rIvj4Fn3eCurqBoWsY84" + }, + { + "name": "Bacon May Die", + "target": "https://game.enjoy4fun.com/baconmaydie/v2/index.html", + "image": "https://img.poki.com/cdn-cgi/image/quality=78,width=600,height=600,fit=cover,f=auto/0b3b5b2de68b3a604693bf23b3994aa7.png" + }, + { + "name": "Google Feud", + "target": "/cdn/3kh0/google-feud/index.html", + "image": "/cdn/3kh0/google-feud/splash.png" + }, + { + "name": "Eggy Car", + "target": "https://webglmath.github.io/eggy-car/", + "image": "https://eggy-car.github.io/img/hero/hero.jpg" } ] \ No newline at end of file