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
The last route will override the previous route because they have the same route key, /foo. This is almost never what someone would want. Instead what should happen here is a validation error saying that you've created a duplicate route.
There is a case to be made to actually support this in the future (route based on path as well as method), but for time being this should be a validation error.
The text was updated successfully, but these errors were encountered:
You know will get:
```
$ chalice deploy
Error: Unable to import your app.py file: Duplicate route detected:
'/foo'
URL paths must be unique.
```
Fixesaws#79.
Routing is based solely on URL path. This can cause issues that are hard to troubleshoot. Consider
The last route will override the previous route because they have the same route key,
/foo
. This is almost never what someone would want. Instead what should happen here is a validation error saying that you've created a duplicate route.There is a case to be made to actually support this in the future (route based on path as well as method), but for time being this should be a validation error.
The text was updated successfully, but these errors were encountered: