Is there any way to make optional routes?
@app.route(r'/contacts/<key>/<name>?', methods=['GET']) def contact_deatils(key, name = None): print(key, name) return 'mensaje de prueba'
if you place parameters
to the routes yes, but also that it is optional for example. I have this in routes
if I place the url
/contacts/1/ , that will let me see the page, but I get an error and it forces me to place the two parameters. And when placing the url
/contacts/1/nombre/ , also show me the page