Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于路由解析问题 #95

Open
EriconYu opened this issue Dec 19, 2017 · 1 comment
Open

关于路由解析问题 #95

EriconYu opened this issue Dec 19, 2017 · 1 comment

Comments

@EriconYu
Copy link

如下三个路由:
app.HttpServer.GET("/v1/machines/list", ListMachines)
app.HttpServer.GET("/v1/machines/:machineId", GetOneMachine)
会提示冲突,但是这种方法用的场景非常多,而且非常简洁,希望能够支持。

@vipplayerdev
Copy link

这种情况只能你勉为其难的在GetOneMachine分析参数再自行调取ListMachines。从消耗上来说,框架做反而会增加一些逻辑处理,影响部分性能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants