From 44adb43466d5b1be7b0be3d5d1d85b3b52d954a2 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Mon, 12 Nov 2018 20:55:10 +0100 Subject: [PATCH] made /parts/ work in URL just as well as /parts --- parts/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/server.py b/parts/server.py index a2fa9d7..56e105c 100644 --- a/parts/server.py +++ b/parts/server.py @@ -54,7 +54,7 @@ def serveImage(img): img_io.seek(0) return send_file(img_io, mimetype='image/png') -@app.route('/parts') +@app.route('/parts', strict_slashes=False) def index(): return render_template('partsearch.html', containers=getContainers())