mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 08:12:40 +10:00
8 lines
302 B
TypeScript
8 lines
302 B
TypeScript
import { defineClientEventHandler } from "~/server/internal/clients/event-handler";
|
|
import prisma from "~/server/internal/db/database";
|
|
|
|
export default defineClientEventHandler(async (h3) => {
|
|
// TODO return the user's library
|
|
const games = await prisma.game.findMany({});
|
|
return games;
|
|
}); |