RAGflow/api/apps/minio_app.py

11 lines
288 B
Python

import os
@manager.route("/endpoint", methods=["GET"]) # noqa: F821
# @login_required
def minio():
"""
Constructs the MinIO endpoint URL based on environment variables.
"""
return os.getenv("MINIO_VISIT_HOST", "localhost") + ":" + os.getenv("MINIO_PORT", "9000") + "/"