Nodejs frameworks like express and fastify allow user to declare routes like so
fastify.get("/:id/projects", async (request: GetProjectRequest, reply) => {})
which ties particular routes to particular types of requests.
The vercel docs suggest making functions like so:
export default async function handler(request, event) {
return Response.json({
success: true,
});
}
What's the canonical way of expressing what request method is allowed for a given vercel serverless endpoint?