fix(backend): change invalid Express wildcard path syntax /{*path} to standard *

This commit is contained in:
Plena Finance Dev
2026-07-09 16:29:01 +05:30
parent 38df8e77c7
commit 538bacf0b3

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('/{*path}', (req, res, next) => {
app.get('*', (req, res, next) => {
if (req.path.startsWith(apiRoot)) return next();
if (req.path === '/_cron/tick') return next();