mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 09:14:54 +10:00
feat(ui): more ui improvements
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import prisma from "~/server/internal/db/database";
|
||||
|
||||
export default defineEventHandler(async (h3) => {
|
||||
const userId = await h3.context.session.getUserId(h3);
|
||||
if (!userId) throw createError({ statusCode: 403 });
|
||||
|
||||
const games = await prisma.game.findMany({
|
||||
orderBy: {
|
||||
mReleased: "desc",
|
||||
},
|
||||
take: 12,
|
||||
});
|
||||
|
||||
return games;
|
||||
});
|
||||
Reference in New Issue
Block a user