metadata engine

This commit is contained in:
DecDuck
2024-10-04 13:01:06 +10:00
parent 196f87c219
commit 22ac7f6b15
16 changed files with 604 additions and 12 deletions

View File

@ -0,0 +1,12 @@
export default defineEventHandler(async (h3) => {
const query = getQuery(h3);
const search = query["q"]?.toString();
if (!search) throw createError({
statusCode: 400,
statusMessage: "Missing search param"
});
const results = await h3.context.metadataHandler.search(search);
return results;
});