mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-15 01:01:20 +10:00
11 lines
350 B
TypeScript
11 lines
350 B
TypeScript
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;
|
|
});
|