So, I have the following route in Flask:
@app.route("/menu-card/<google_place_id>", methods=['GET'])
On navigating to http://127.0.0.1:5000/menu-card/ChIJAxXhIUMUrjsR5QOqVsQjCCI, I get the proper response.
However, then I tried changing the URL pattern as follows:
@app.route("/menu-card?id=<google_place_id>", methods=['GET'])
On navigating to http://127.0.0.1:5000/menu-card?id=ChIJAxXhIUMUrjsR5QOqVsQjCCI I now get a 404 error. What am I doing wrong ?