Raise a warning on adding duplicated resource
Đang mở
enhancement
server
- Ngôn ngữ chính
- Python
- Star
- 16.5k
- Fork
- 2.4k
- Merge trung bình
- 17 giờ 22 phút
- Pull request đã merge (30 ngày)
- 212
Mô tả
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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.