mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 13:28:57 +00:00
Update index.js
This commit is contained in:
@@ -5,6 +5,9 @@ fastify.register(require('@fastify/cors'))
|
||||
fastify.get('/', function (req, reply) {
|
||||
return { hello: "from nodejs" }
|
||||
})
|
||||
fastify.get('/401', function (req, reply) {
|
||||
return reply.code(401).header('Content-Type', 'application/json; charset=utf-8').send({ hello: '401' })
|
||||
})
|
||||
fastify.get('/env', function (req, reply) {
|
||||
return { env: process.env }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user