import type { FastifyInstance } from "fastify";
import { getAuthUser } from "./index.js";

export const registerAuthRoutes = async (app: FastifyInstance) => {
  app.get("/api/me", async (request) => ({ user: await getAuthUser(request) }));
};
