mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 06:52:56 +00:00 
			
		
		
		
	Ignore trailing slash in controller route
This commit is contained in:
		@@ -26,8 +26,9 @@ if __name__ == '__main__':
 | 
			
		||||
        event_handler_type=FSMAwareEventHandler
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    route = os.environ['SECRET'].rstrip('/')
 | 
			
		||||
    application = Application([(
 | 
			
		||||
        f'/{os.environ["SECRET"]}',
 | 
			
		||||
        f'/{route}/?',
 | 
			
		||||
        ControllerPostHandler,
 | 
			
		||||
        {'controller': controller_eh}
 | 
			
		||||
    )])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user