feat: 更新 @kevisual/router 版本至 0.0.89;添加 download 命令模块以支持文件下载
This commit is contained in:
@@ -5,5 +5,6 @@ import './routes/index.ts';
|
||||
import './routes-simple/index.ts';
|
||||
|
||||
export const AgentPlugin: Plugin = createRouterAgentPluginFn({
|
||||
router: app,
|
||||
})
|
||||
router: app as any,
|
||||
})
|
||||
export { app }
|
||||
3
assistant/src/router.ts
Normal file
3
assistant/src/router.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { parse } from '@kevisual/router/commander';
|
||||
import { app, program } from './server.ts';
|
||||
parse({ app: app as any, program: program as any })
|
||||
@@ -164,3 +164,5 @@ export const runParser = async (argv: string[]) => {
|
||||
console.error('执行错误:', error.message);
|
||||
}
|
||||
};
|
||||
|
||||
export { app, program };
|
||||
|
||||
Reference in New Issue
Block a user