more client routes to support Drop app update

This commit is contained in:
DecDuck
2024-10-15 20:05:38 +11:00
parent 329c74d3ce
commit 91b7e1071c
4 changed files with 69 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
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;
});