mirror of
https://github.com/kou029w/_.git
synced 2025-03-14 02:15:15 +00:00
11 lines
254 B
TypeScript
11 lines
254 B
TypeScript
import { FastifyInstance, FastifyReply } from "fastify";
|
|
|
|
async function sayHello(_: unknown, reply: FastifyReply) {
|
|
await reply.send("hello!");
|
|
}
|
|
|
|
async function index(fastify: FastifyInstance) {
|
|
fastify.get("/", sayHello);
|
|
}
|
|
|
|
export default index;
|