suggests that I have these routes:
app.add_url_rule('/', view_func=index, methods=['GET']) app.add_url_rule('login', view_func=login, methods=['GET', 'POST']) @validate_access() def index():
I have 2 endpoints with the same @validate_access decorator. When I run this code, I got
AssertionError: View function mapping is overwriting an existing endpoint function: wrapperAssertionError: View function mapping is overwriting an existing endpoint function: wrapper
I do not know if there is his mistake or not. But please let me know if there is a solution for this.
Thanks:)
Anas alldrees
source share