Feat: トークンを削除できる機能 / Fix: meエンドポイントでレスポンスヘッダーにapplication/jsonがない問題 / Chg: エンドポイントの関数名をL.jsを統一

This commit is contained in:
2026-03-20 18:34:37 +09:00
parent 0e615faa7f
commit fa7a1e87ff
10 changed files with 58 additions and 12 deletions
+2
View File
@@ -2,6 +2,8 @@ import type { FastifyInstance } from "fastify";
export default async function Me(fastify: FastifyInstance) {
fastify.post("/", async (req, res) => {
res.header("Content-Type", "application/json");
if ("error" in req.token)
return res.code(400).send(req.token);