Skip to content

Commit

Permalink
Merge branch 'master' into SFD-54
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodecf authored Jan 27, 2024
2 parents 0a825d4 + 4ed1801 commit 5c4dab9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ app.register(cors, {
})
app.register(userRoutes)
app.addHook('preHandler', logMiddleware)

app.register(authRoutes)

app.register(fastifyJwt, {
secret: env.JWT_SECRET,
})


app.setErrorHandler((error, _, response) => {
if (env.NODE_ENV !== 'production') {
console.error(error)
Expand Down

0 comments on commit 5c4dab9

Please sign in to comment.