From 2e366b8e06cb19108b3687ffb80589076e6d3c1f Mon Sep 17 00:00:00 2001 From: sumit-plena Date: Tue, 7 Jul 2026 17:20:56 +0530 Subject: [PATCH] fix Express5 wildcard route syntax, restore node-cron --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 4c514d7..81205e9 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -45,7 +45,7 @@ app.post('/_cron/tick', (req, res) => { const publicDir = path.join(__dirname, '../public'); app.use(express.static(publicDir)); -app.get('*', (req, res, next) => { +app.get('/{*path}', (req, res, next) => { if (req.path.startsWith(apiRoot)) return next(); if (req.path === '/_cron/tick') return next(); res.sendFile(path.join(publicDir, 'index.html'), (err) => {