fix(backend): change invalid Express wildcard path syntax /{*path} to standard *
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user