First commit

This commit is contained in:
2026-03-18 22:42:33 +09:00
commit 50657066a6
64 changed files with 5290 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { FastifyInstance } from "fastify";
export default async function Me(fastify: FastifyInstance) {
fastify.post("/", async (req, res) => {
if ("error" in req.token)
return res.code(400).send(req.token);
const { password, email, ...safeUser } = req.token.user;
return res.send(safeUser);
});
}