Another comment here to remind any readers that these line replace `add_url_rule` with our own custom function would be great.