mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 08:12:40 +10:00
ui groundwork
This commit is contained in:
@ -1,12 +0,0 @@
|
||||
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;
|
||||
});
|
||||
Reference in New Issue
Block a user