diff --git a/src/api/routes/Account.ts b/src/api/routes/Account.ts index 830edbb..284f3d4 100644 --- a/src/api/routes/Account.ts +++ b/src/api/routes/Account.ts @@ -29,7 +29,7 @@ export default class Account extends Route { res.status(200).json({ code: this.constants.codes.SUCCESS, message: acc }); }); - this.router.get('/moderations/:id', async (req: Req, res) => { + this.router.get('/moderations/:id?', async (req: Req, res) => { const moderations = await this.server.client.db.Moderation.find({ username: req.account.username }); if (!moderations.length) res.sendStatus(204); if (req.params.id) {