mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 05:32:55 +00:00 
			
		
		
		
	Make trailing slash optional in URLs
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user