mirror of
https://github.com/BillyOutlast/drop.git
synced 2026-02-04 08:41:17 +01: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;
|
|
});
|