mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-01-31 15:37:09 +01:00
12 lines
387 B
TypeScript
12 lines
387 B
TypeScript
import aclManager from "~/server/internal/acls";
|
|
import imageHandler from "~/server/internal/metadata/image";
|
|
|
|
export default defineEventHandler(async (h3) => {
|
|
const allowed = await aclManager.allowSystemACL(h3, ["game:image:import"]);
|
|
if (!allowed) throw createError({ statusCode: 403 });
|
|
|
|
const images = await imageHandler.searchImages("space engineers");
|
|
|
|
return images;
|
|
});
|