mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
9 lines
292 B
TypeScript
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;
|