mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
Object storage now works fully, with the permission system. It still needs additional external endpoints for updating and deleting objects from the API, but it is otherwise complete. Further tasks include writing an S3 adapter.
5 lines
166 B
TypeScript
5 lines
166 B
TypeScript
export default defineEventHandler(async (h3) => {
|
|
const user = await h3.context.session.getUser(h3);
|
|
return user ?? null; // Need to specifically return null
|
|
});
|