fix: handle trailing slashes on root route and avoid crashes due to AssertionError
s thrown by odd requests
#1960
+76
−9
AssertionError
s thrown by odd requests
#1960