I'm trying to connect to different databased based on the URL parameter using flask
In defined the route as
@app.route('/data_service/file/<string:db>/', methods=['GET','DELETE','POST','PUT'])
def file():
However, flask complains that
TypeError: file() got an unexpected keyword argument 'db'
Imho this should work according to description, e.g. https://pythonprogramming.net/flask-url-converters-tutorial/