From c4cdf2dfd2d5edc165e24bfa2647c39447a4d9b2 Mon Sep 17 00:00:00 2001 From: Sebastian Speitel Date: Sat, 14 Dec 2019 13:54:18 +0100 Subject: [PATCH] Added catchall --- app.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index a2616c3..a2f62c0 100644 --- a/app.py +++ b/app.py @@ -14,11 +14,15 @@ def tu_ilmenau(): def about(): return redirect("https://github.com/clerie/walduni", code=302) -@app.route('/modultafeln/') -@app.route('/modultafel/') -@app.route('/modulplan/') -@app.route('/module/') -def modultafeln(course): +@app.route('/modultafeln//') +@app.route('/modultafel//') +@app.route('/modulplan//') +@app.route('/module//') +@app.route('/modultafeln/') +@app.route('/modultafel/') +@app.route('/modulplan/') +@app.route('/module/') +def modultafeln(course=""): courseToPath = { "amw": "AngewandteMedienundKommunikationswissenschaft/Bachelor/2014",