feat: 重构CNB管理模块,添加清理记录功能,更新中间件为统一认证方式,优化工作空间相关路由
This commit is contained in:
12
test/a-config.ts
Normal file
12
test/a-config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { getConfig } from '../agent/modules/cnb-manager';
|
||||
import { QueryLoginNode } from '@kevisual/api/login-node';
|
||||
const queryLoginNode = new QueryLoginNode({});
|
||||
await queryLoginNode.init()
|
||||
const testConfig = async () => {
|
||||
const token = await queryLoginNode.getToken();
|
||||
console.log('Token:', token);
|
||||
const res = await getConfig({ token });
|
||||
console.log('Config:', res);
|
||||
}
|
||||
|
||||
testConfig();
|
||||
Reference in New Issue
Block a user