4 ms·
The decorator can do anything. In flask the decorator syntax is just shorthand for adding the route to a registry which is looked up every request. The source
by axiak 15y ago
The decorator can do anything. In flask the decorator syntax is just shorthand for adding the route to a registry which is looked up every request.
The source code is pitifully small: https://bitbucket.org/mitsuhiko/flask/src/4d82231621fc/flask.py#cl-636 https://bitbucket.org/mitsuhiko/flask/src/4d82231621fc/flask...