Replies: 3 comments 3 replies
-
避免不了吧,除非 @controller("/" ) ,路由里写 /groups |
Beta Was this translation helpful? Give feedback.
1 reply
-
rest 只是个规范并非标准。没必要花时间改代码仅仅为了符合它。 |
Beta Was this translation helpful? Give feedback.
2 replies
-
目前无法解决,只能修改代码,把@controller里的前缀改到每个接口上声明。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem(描述问题)
如上,swagger提取的几个接口uri都是"/groups/",如何避免接口以斜杠结尾?
Midway Versions(Midway 版本)
npx midway-version@latest
执行命令如上。package.json中的配置是:
"@midwayjs/bootstrap": "^3.16.0",
"@midwayjs/core": "^3.16.2",
"@midwayjs/decorator": "^3.16.0",
"@midwayjs/koa": "^3.16.1",
"@midwayjs/logger": "^3.4.0",
"@midwayjs/swagger": "^3.16.1",
Beta Was this translation helpful? Give feedback.
All reactions