flask.Blueprint.before_request

Blueprint.before_request(f)[source]

Like Flask.before_request() but for a blueprint. This function is only executed before each request that is handled by a function of that blueprint.