feat: image provider + importer partial backend

This commit is contained in:
DecDuck
2025-08-01 18:33:06 +10:00
parent 545a6b154a
commit a287138650
21 changed files with 287 additions and 58 deletions

View File

@ -0,0 +1,11 @@
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;
});