fp/services/htmx/src/routes.ts
CJ_Clippy 140883a69c
Some checks failed
ci / build (push) Failing after 1s
dec 2024 progress
2024-12-11 23:23:46 -08:00

26 lines
429 B
TypeScript

fastify.route({
method: 'GET',
url: '/',
schema: {
querystring: {
type: 'object',
properties: {
name: { type: 'string' },
excitement: { type: 'integer' }
}
},
response: {
200: {
type: 'object',
properties: {
hello: { type: 'string' }
}
}
}
},
handler: function (request, reply) {
reply.send({ hello: 'world' })
}
})