I have no idea how to fix this problem that I get from my Python code when I am using Flask:
@app.route('/addEvent/', methods=['POST'])
def addEvent():
@app.route('/deleteEvent/', methods=['POST'])
def addEvent():
Error message:
AssertionError: View function mapping is overwriting an existing endpoint function: addEvent
21:50:57 web.1 | Traceback (most recent call last):
I tried understanding this page: http://flask.pocoo.org/docs/0.10/patterns/viewdecorators/
Also this post AssertionError: View function mapping is overwriting an existing endpoint function: main
But I don't understand. Could someone please tell me how to fix this for my code?