Ignore trailing slash in controller route

This commit is contained in:
Kristóf Tóth 2019-08-30 16:41:59 +02:00
parent d9fa357672
commit 8c2cd7e44e
1 changed files with 2 additions and 1 deletions

View File

@ -26,8 +26,9 @@ if __name__ == '__main__':
event_handler_type=FSMAwareEventHandler event_handler_type=FSMAwareEventHandler
) )
route = os.environ['SECRET'].rstrip('/')
application = Application([( application = Application([(
f'/{os.environ["SECRET"]}', f'/{route}/?',
ControllerPostHandler, ControllerPostHandler,
{'controller': controller_eh} {'controller': controller_eh}
)]) )])