app.utils.errors
handle_unauthenticated_request()
handle_unauthenticated_request
To avoid returning the login page html when a route is used by geonature API
To avoid returning the login page html when a route is used by geonature API this function overrides LoginManager.unauthorized() from flask-login .
response