You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.
目前感觉router的的mw定制化的调用地方有待丰富。
如果是独立的gateway工程,那针对每一个接口都可以独立定制mw。
但是如果是多gateway工程,那么一般来讲通用的mw都是存放基础库里面。 那么在基础库里面就没有办法获取接口上面的信息。
比如我如果有一个mw是校验权限,但是要根据类型校验,那么这个是要在接口定义的地方指定类型。
按照目前的写法就只能写两个mw,然后分别在接口上面指定。
但是实际上应该是mw去拿到router定义的Engine对象,然后根据条件去判断。
所以建议添加tags 字段,供用户自己扩展.
The text was updated successfully, but these errors were encountered: