mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 14:31:21 +00:00
Make trailing slash optional in URLs
This commit is contained in:
parent
1c3e946e29
commit
e39b8b9283
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user