fix(backend): use correct Express 5 wildcard syntax /{*splat}

This commit is contained in:
Plena Finance Dev
2026-07-09 16:47:30 +05:30
parent 538bacf0b3
commit 461f936b43

View File

@@ -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();