Flask-router doesn't need to be used for every route. Special cases may require you to define the url rule directly. To do this follow these steps:
- Locate in your application where URL rules are defined.
- Access the flask application used in that context.
- Call the
app.add_url_rule
method directly.- Documentation for this method can be found on the flask website.
Check the ordering of your components. Components that appear first in a list or in a higher node of the tree will be called first. Go through your components, in order, and make sure each of them makes a call to their parent and returns its result. For example:
def my_method(self):
result = self.parent.my_method()
result['my_mutation'] = True
return result
Consider that "components" and "middleware" only decorate behavior. They don't control it. "Controllers" control application behavior. Adding new controllers or rewriting your existing controllers may be a better use of your time.