Skip to content

Commit bea7647

Browse files
committed
fix more question marks
1 parent de17886 commit bea7647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

svc/api/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import redis from '../store/redis.ts';
1010
//@ts-expect-error
1111
const api: Router = new Router();
1212
// Player endpoints middleware
13-
api.use('/players/:account_id/:info?', async (req, res, next) => {
13+
api.use('/players/:account_id/{:info}', async (req, res, next) => {
1414
if (!Number.isInteger(Number(req.params.account_id))) {
1515
return res.status(400).json({ error: 'invalid account id' });
1616
}
@@ -75,7 +75,7 @@ api.use('/players/:account_id/:info?', async (req, res, next) => {
7575
await redis.zremrangebyrank('visitedIds', '0', '-50001');
7676
return next();
7777
});
78-
api.use('/teams/:team_id/:info?', (req, res, next) => {
78+
api.use('/teams/:team_id/{:info}', (req, res, next) => {
7979
if (!Number.isInteger(Number(req.params.team_id))) {
8080
return res.status(400).json({ error: 'invalid team id' });
8181
}

0 commit comments

Comments
 (0)