mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-02-28 04:21:16 +00:00
init
This commit is contained in:
7
server/api/user.get.ts
Normal file
7
server/api/user.get.ts
Normal 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 };
|
||||
});
|
||||
Reference in New Issue
Block a user