mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
12 lines
399 B
TypeScript
12 lines
399 B
TypeScript
import aclManager from "~/server/internal/acls";
|
|
import { defineClientEventHandler } from "~/server/internal/clients/event-handler";
|
|
import userLibraryManager from "~/server/internal/userlibrary";
|
|
|
|
export default defineClientEventHandler(async (h3, { fetchUser }) => {
|
|
const user = await fetchUser();
|
|
|
|
const collection = await userLibraryManager.fetchLibrary(user.id);
|
|
|
|
return collection;
|
|
});
|