partial: annotate rest of admin routes

This commit is contained in:
DecDuck
2025-08-10 09:26:20 +10:00
parent 90b02b7f8e
commit 80f7757558
19 changed files with 119 additions and 58 deletions

View File

@ -12,6 +12,9 @@ const UpdateLibrarySource = type({
options: "object",
}).configure(throwingArktype);
/**
* Update a library source's options. Validates options and live-updates the source.
*/
export default defineEventHandler<{ body: typeof UpdateLibrarySource.infer }>(
async (h3) => {
const allowed = await aclManager.allowSystemACL(h3, [