feat: added limits to /today

This commit is contained in:
TresAbhi committed 2023-07-10 17:41:48 +00:00
1 parent 438feefa83
commit 297f2f6580
3 files changed
+46 -33

No files matched your search

+5 -1
View File
@@ -10,6 +10,10 @@ export const todayRoute: RouteRegistry = {
async handler(req) {
const player = resolvePlayerFromRequest(req);
return await today(player, true);
return await today(
player,
req.query.limit ? parseInt(req.query.limit as string) : undefined,
true,
);
},
};