Skip to content

Commit

Permalink
server: add test GET route
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Apr 27, 2024
1 parent 3101c32 commit 8f55648
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ fastify.register(require('@fastify/oauth2'), {

fastify.register(require('./routes/auth'), { prefix: '/api/auth' })

fastify.get('/test', (request, reply) => reply.code(200).send({ success: true, message: 'Server running...' }))

fastify.setNotFoundHandler((request, reply) => {
reply.redirect(process.env.FRONTEND_URL)
})
Expand Down

0 comments on commit 8f55648

Please sign in to comment.