dotweb icon indicating copy to clipboard operation
dotweb copied to clipboard

关于路由解析问题

Open EriconYu opened this issue 7 years ago • 1 comments

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

EriconYu avatar Dec 19 '17 03:12 EriconYu

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

vipplayerdev avatar Sep 01 '18 23:09 vipplayerdev