feat: 添加路由描述和更新运行代码参数,优化测试用例
This commit is contained in:
@@ -4,7 +4,8 @@ const app = new Mini();
|
||||
|
||||
app.route({
|
||||
path: 'main',
|
||||
id: 'abc'
|
||||
id: 'abc',
|
||||
description: '这是一个测试的 main 路由'
|
||||
}).define(async (ctx) => {
|
||||
ctx.body = {
|
||||
a: '123'
|
||||
|
||||
Reference in New Issue
Block a user