Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

docs(api): clarity SystemFeatureApi for webapp is unauthenticated by design (#31432)

QuantumGhost99d19cd3dbfd
diff --git a/api/controllers/web/feature.py b/api/controllers/web/feature.py
index cce3dae95d5..2540bf02f43 100644
--- a/api/controllers/web/feature.py
+++ b/api/controllers/web/feature.py
@@ -17,5 +17,15 @@ class SystemFeatureApi(Resource):
Returns:
dict: System feature configuration object
+
+ This endpoint is akin to the `SystemFeatureApi` endpoint in api/controllers/console/feature.py,
+ except it is intended for use by the web app, instead of the console dashboard.
+
+ NOTE: This endpoint is unauthenticated by design, as it provides system features
+ data required for webapp initialization.
+
+ Authentication would create circular dependency (can't authenticate without webapp loading).
+
+ Only non-sensitive configuration data should be returned by this endpoint.
"""
return FeatureService.get_system_features().model_dump()