This commit is contained in:
2026-02-17 03:53:59 +05:30
commit dcb19e0a2f
28 changed files with 2766 additions and 0 deletions

7
server/api/user.get.ts Normal file
View File

@@ -0,0 +1,7 @@
import { getApi } from "../utils/bknd";
export default defineEventHandler(async (event) => {
const api = await getApi({ verify: true, headers: event.headers });
const user = api.getUser();
return { user };
});