mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
5 lines
132 B
TypeScript
5 lines
132 B
TypeScript
export default defineEventHandler(async (h3) => {
|
|
const user = await h3.context.session.getUser(h3);
|
|
|
|
return user ?? {};
|
|
}); |