This commit is contained in:
2026-01-17 23:11:08 +08:00
parent d6da542989
commit 7b0b00feff
9 changed files with 95 additions and 184 deletions

View File

@@ -40,6 +40,7 @@ app
description: '获取应用详情可以通过id或者key+version来获取',
})
.define(async (ctx) => {
console.log('get app manager called');
const tokenUser = ctx.state.tokenUser;
const id = ctx.query.id;
const { key, version } = ctx.query?.data || {};
@@ -61,6 +62,7 @@ app
if (!am) {
throw new CustomError('app not found');
}
console.log('get app', am.id, am.key, am.version);
ctx.body = prefixFix(am, tokenUser.username);
})
.addTo(app);