From e39b8b9283d75ea9093e5a1a0beab88ad652435c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Fri, 9 Feb 2018 14:05:34 +0100 Subject: [PATCH] Make trailing slash optional in URLs --- src/controller/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/app.py b/src/controller/app.py index ff3f946..8ee357a 100644 --- a/src/controller/app.py +++ b/src/controller/app.py @@ -9,8 +9,8 @@ from tfw.networking.solvable_connector import SolvableConnector if __name__ == '__main__': solvable_connector = SolvableConnector() routes = [ - (r'/{secret}/'.format(secret=AVATAO_SECRET), SolutionCheckHandler, {'solvable_connector': solvable_connector}), - (r'/{secret}/test'.format(secret=AVATAO_SECRET), TestHandler, {'solvable_connector': solvable_connector}) + (r'/{secret}/?'.format(secret=AVATAO_SECRET), SolutionCheckHandler, {'solvable_connector': solvable_connector}), + (r'/{secret}/test/?'.format(secret=AVATAO_SECRET), TestHandler, {'solvable_connector': solvable_connector}) ] app = Application( routes