mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-12-05 02:41:32 +00:00
Ignore trailing slash in controller route
This commit is contained in:
parent
d9fa357672
commit
8c2cd7e44e
@ -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}
|
||||||
)])
|
)])
|
||||||
|
Loading…
Reference in New Issue
Block a user