2021-03-04から1日間の記事一覧
問題 Fastifyで書かれたAPIサーバにて、以下のようなルートハンドラがあるとする。 getHelloHandler (request: FastifyRequest, reply: FastifyReply) { reply.header('Content-Type', 'application/json').code(200); reply.send({ hello: 'world' }); } 上…
問題 Fastifyで書かれたAPIサーバにて、以下のようなルートハンドラがあるとする。 getHelloHandler (request: FastifyRequest, reply: FastifyReply) { reply.header('Content-Type', 'application/json').code(200); reply.send({ hello: 'world' }); } 上…