update
This commit is contained in:
@@ -61,3 +61,13 @@ export const app: App = useContextKey<App>('app', () => {
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
app.route({
|
||||
path: 'router',
|
||||
key: 'list',
|
||||
description: '获取路由列表',
|
||||
}).define(async (ctx) => {
|
||||
const list = ctx.app.getList()
|
||||
ctx.body = { list }
|
||||
}).addTo(app);
|
||||
Reference in New Issue
Block a user