fix: use view_functions instead of string reference
This commit is contained in:
@@ -88,7 +88,7 @@ def create_app(config_name: Optional[str] = None) -> Flask:
|
|||||||
csrf = CSRFProtect(app)
|
csrf = CSRFProtect(app)
|
||||||
|
|
||||||
# Exempt health check endpoint from CSRF (used by monitoring)
|
# Exempt health check endpoint from CSRF (used by monitoring)
|
||||||
csrf.exempt('tasks.health_check')
|
csrf.exempt(tasks_blueprint.view_functions['health_check'])
|
||||||
|
|
||||||
# Register error handlers
|
# Register error handlers
|
||||||
register_error_handlers(app)
|
register_error_handlers(app)
|
||||||
|
|||||||
Reference in New Issue
Block a user