mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
10 lines
355 B
TypeScript
10 lines
355 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 collections = await userLibraryManager.fetchCollections(user.id);
|
|
return collections;
|
|
});
|