Skip to content

Commit

Permalink
chore: logger
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Feb 16, 2024
1 parent 9e97ba4 commit c8a5a25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev": "bun run --hot src/index.ts"
},
"dependencies": {
"@bogeychan/elysia-logger": "^0.0.17",
"@elysiajs/cors": "0.8.0",
"@elysiajs/swagger": "0.8.5",
"cheerio": "1.0.0-rc.12",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Elysia, t } from 'elysia'
import { cors } from '@elysiajs/cors'
import { swagger } from '@elysiajs/swagger'
import { rateLimit } from 'elysia-rate-limit'
import { logger } from '@bogeychan/elysia-logger'

import { getList } from './functions/getList'
import { getLotto } from './functions/getLotto'
Expand All @@ -27,6 +28,7 @@ const app = new Elysia()
exclude: ['/', '/ping'],
})
)
.use(logger())
.model(model)
.get('/', ({ set }) => (set.redirect = '/swagger'))
.get('/ping', () => ({
Expand Down

0 comments on commit c8a5a25

Please sign in to comment.