mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-14 00:31:25 +10:00
finalised client APIs and authentication method
This commit is contained in:
7
server/api/v1/client/user/index.get.ts
Normal file
7
server/api/v1/client/user/index.get.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { defineClientEventHandler } from "~/server/internal/clients/event-handler";
|
||||
|
||||
export default defineClientEventHandler(async (h3, { fetchUser }) => {
|
||||
const user = await fetchUser();
|
||||
|
||||
return user;
|
||||
});
|
||||
Reference in New Issue
Block a user