test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user