mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
Update index.js
This commit is contained in:
@@ -8,6 +8,10 @@ fastify.get('/', function (req, reply) {
|
||||
fastify.get('/env', function (req, reply) {
|
||||
return { env: process.env }
|
||||
})
|
||||
fastify.get('/env/:env', function (req, reply) {
|
||||
const env = request.params.env
|
||||
return { env: process.env[env] }
|
||||
})
|
||||
|
||||
fastify.get('/health', function (req, reply) {
|
||||
return 'OK'
|
||||
|
||||
Reference in New Issue
Block a user