Files
drop/server/api/v1/user/index.get.ts
DecDuck 435551c207 object storage + full permission system + testing
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.
2024-10-09 14:43:06 +11:00

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
});