partial: add admin game annotations

This commit is contained in:
DecDuck
2025-08-09 22:41:53 +10:00
parent e3feaeb970
commit 29fdfcbdd4
10 changed files with 56 additions and 16 deletions

View File

@ -8,6 +8,9 @@ const DeleteVersion = type({
versionName: "string",
}).configure(throwingArktype);
/**
* Delete a game's version
*/
export default defineEventHandler<{ body: typeof DeleteVersion.infer }>(
async (h3) => {
const allowed = await aclManager.allowSystemACL(h3, [

View File

@ -8,6 +8,9 @@ const UpdateVersionOrder = type({
versions: "string[]",
}).configure(throwingArktype);
/**
* Update the version order of a game.
*/
export default defineEventHandler<{ body: typeof UpdateVersionOrder.infer }>(
async (h3) => {
const allowed = await aclManager.allowSystemACL(h3, [