1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
_/vercel-fastify/api/_routes/index.ts
2024-04-22 00:20:58 +09:00

9 lines
292 B
TypeScript

import { FastifyInstance } from "fastify";
async function index(fastify: FastifyInstance): Promise<void> {
fastify.get("/", async () => fastify.printRoutes());
fastify.get("/query", async ({ query }) => query);
fastify.post("/body", async ({ body }) => body);
}
export default index;