Skip to content

Instantly share code, notes, and snippets.

View billxinli's full-sized avatar
🏠
Working from home

Bill Li billxinli

🏠
Working from home
View GitHub Profile
const port = process.env.PORT || 8080
// ESM
import Fastify from 'fastify'
const fastify = Fastify({
logger: true
})
// Declare a route
fastify.patch('/', function (request, reply) {