From 461f936b4324ae4bfd8b1b3be86207929022bb51 Mon Sep 17 00:00:00 2001 From: Plena Finance Dev Date: Thu, 9 Jul 2026 16:47:30 +0530 Subject: [PATCH] fix(backend): use correct Express 5 wildcard syntax /{*splat} --- 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 cee7a11..0dbfe4d 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -51,7 +51,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('/{*splat}', (req, res, next) => { if (req.path.startsWith(apiRoot)) return next(); if (req.path === '/_cron/tick') return next();