fix: use view_functions instead of string reference

This commit is contained in:
2025-11-11 05:33:24 +01:00
parent 4aa075a7ff
commit cc01084630

View File

@@ -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)