mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Refactor: Improve readability
This commit is contained in:
parent
ce696452be
commit
ba7aac2883
@ -35,6 +35,7 @@ export default async (endpoint: IEndpoint, req: express.Request, res: express.Re
|
|||||||
try {
|
try {
|
||||||
await limitter(endpoint, ctx); // Rate limit
|
await limitter(endpoint, ctx); // Rate limit
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
// drop request if limit exceeded
|
||||||
return reply(429);
|
return reply(429);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user