mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 00:11:33 +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__':
|
if __name__ == '__main__':
|
||||||
solvable_connector = SolvableConnector()
|
solvable_connector = SolvableConnector()
|
||||||
routes = [
|
routes = [
|
||||||
(r'/{secret}/'.format(secret=AVATAO_SECRET), SolutionCheckHandler, {'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})
|
(r'/{secret}/test/?'.format(secret=AVATAO_SECRET), TestHandler, {'solvable_connector': solvable_connector})
|
||||||
]
|
]
|
||||||
app = Application(
|
app = Application(
|
||||||
routes
|
routes
|
||||||
|
Loading…
Reference in New Issue
Block a user