mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
12 lines
385 B
TypeScript
12 lines
385 B
TypeScript
import aclManager from "~/server/internal/acls"
|
|
import prisma from "~/server/internal/db/database";
|
|
|
|
export default defineEventHandler(async (h3) => {
|
|
const allowed = await aclManager.allowSystemACL(h3, ["import:version:read"]);
|
|
if(!allowed) throw createError({statusCode: 403});
|
|
|
|
const userPlatforms = await prisma.userPlatform.findMany({});
|
|
|
|
return userPlatforms;
|
|
})
|