Raise a warning on adding duplicated resource
未关闭
enhancement
server
- 主要语言
- Python
- 星标
- 16.5k
- 派生
- 2.4k
- 平均合并
- 17 小时 22 分钟
- 30 天内合并 PR
- 212
描述
Now, `add_route` merges consequenced `add_get(path, handler)` and `add_post(path, handler)` calls but doesn't do it if a resource for other path is pushed in between calls.
Also, it doesn't merge the same resource but under different names.
Let's not change behavior but raise a user warning for such cases, most likely it is the result of silly mistake/misunderstanding.
贡献指南
评估
这个 Issue 还没有评估数据。