Fix leading and trailing slashes in URL

This commit is contained in:
Tobias Eidelpes 2021-06-10 21:36:44 +02:00
parent adb10a609e
commit 1aa4db92ca

View File

@ -45,7 +45,7 @@ def api_get_of_key(key):
return el.get_list_of(key) return el.get_list_of(key)
@app.route("api/keys/<key>/<index>") @app.route("/api/keys/<key>/<index>/")
def api_get_index_of_key(key, index): def api_get_index_of_key(key, index):
return el.get_index_of(key, index) return el.get_index_of(key, index)