mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-15 01:01:20 +10:00
initial commit
This commit is contained in:
5
server/api/v1/whoami.get.ts
Normal file
5
server/api/v1/whoami.get.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export default defineEventHandler(async (h3) => {
|
||||
const user = await h3.context.session.getUser(h3);
|
||||
|
||||
return user ?? {};
|
||||
});
|
||||
Reference in New Issue
Block a user