fork of hey-api/openapi-ts because I need some additional things
at main 16 lines 372 B view raw
1import type { RouteHandlers } from './client/fastify.gen'; 2 3export const serviceHandlers: RouteHandlers = { 4 createPets(request, reply) { 5 reply.code(201).send(); 6 }, 7 listPets(request, reply) { 8 reply.code(200).send([]); 9 }, 10 showPetById(request, reply) { 11 reply.code(200).send({ 12 id: Number(request.params.petId), 13 name: 'Kitty', 14 }); 15 }, 16};