feat: 重构CNB管理模块,添加清理记录功能,更新中间件为统一认证方式,优化工作空间相关路由
This commit is contained in:
18
agent/main.ts
Normal file
18
agent/main.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// import { RemoteApp } from '@kevisual/remote-app';
|
||||
import { app } from './index.ts'
|
||||
// import { QueryLoginNode } from '@kevisual/api/login-node';
|
||||
// const queryLoginNode = new QueryLoginNode({});
|
||||
// await queryLoginNode.init()
|
||||
// const token = await queryLoginNode.getToken();
|
||||
// app.createRouteList()
|
||||
// const remoteApp = new RemoteApp({
|
||||
// id: 'cnb-agent',
|
||||
// token: token,
|
||||
// url: 'https://kevisual.cn/ws/proxy',
|
||||
// app: app as any,
|
||||
// })
|
||||
// const isConnected = await remoteApp.isConnect();
|
||||
// if (isConnected) {
|
||||
// console.log('Remote app connected successfully');
|
||||
// remoteApp.listenProxy();
|
||||
// }
|
||||
Reference in New Issue
Block a user