Skip to content

Commit

Permalink
오류 상태 코드 안되는 현상 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeonghwan-kim committed Feb 1, 2024
1 parent 5d6efd3 commit 391cd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Expand Up @@ -41,7 +41,7 @@ const startT = Date.now()
app.use('/health', (_, res) => res.json({time: Date.now() - startT}))

app.use((req, res, next) => {
res.status = 404
res.statusCode = 404;
next(Error('not found'))
})

Expand Down

0 comments on commit 391cd75

Please sign in to comment.