mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-03-01 02:38:57 +00:00
Update index.js
This commit is contained in:
@@ -6,7 +6,7 @@ fastify.register(require('@fastify/cors'))
|
|||||||
|
|
||||||
fastify.get('/', function (req, reply) {
|
fastify.get('/', function (req, reply) {
|
||||||
console.log('hello');
|
console.log('hello');
|
||||||
return { hello: "from nodejs" }
|
return { hello: "from nodejs #2" }
|
||||||
})
|
})
|
||||||
fastify.get('/300', function (req, reply) {
|
fastify.get('/300', function (req, reply) {
|
||||||
return reply.code(300).header('Content-Type', 'application/json; charset=utf-8').send({ hello: '300' })
|
return reply.code(300).header('Content-Type', 'application/json; charset=utf-8').send({ hello: '300' })
|
||||||
|
|||||||
Reference in New Issue
Block a user