Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervspl committed Mar 5, 2024
1 parent 27c96bc commit 99f87f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ const app = new Elysia()
'ratelimit-reset': result.reset.toString(),
};

console.info('Rate limit exceeded');

return 'Too many requests';
}
})
Expand All @@ -62,6 +64,7 @@ const app = new Elysia()
.get(
'/realms/:region/:version',
async ({ set, params: { region, version } }) => {
console.info('GET /realms/:region/:version', { region, version });
const realms = await realmService(region, version);

if ('error' in realms) {
Expand All @@ -86,6 +89,7 @@ const app = new Elysia()
.get(
'/item/:id/ah/:ah_id',
async ({ params: { id, ah_id }, set }) => {
console.info('GET /item/:id/ah/:ah_id', { id, ah_id });
const item = await itemService(id, ah_id);

if ('error' in item) {
Expand Down

0 comments on commit 99f87f5

Please sign in to comment.