1

Usually falcons have excellent vision. It's weird that falcon in python sees that these two routes as conflicting:

app.add_route('/verifications/{template}/{email}', code_generation_resource)
app.add_route('/verifications/{email}/code/{code}', code_verification_resource)

error message:

ValueError: The URI template for this route conflicts with another route's template.

I can easily work around it, but I'm wondering why they are conflicting.

4

1 回答 1

0

这是因为您使用的是相同的基本路径。如果在 falcon PATH 中添加变量,它只会检查 base.

于 2017-03-29T10:46:06.020 回答