2025-06-10 00:20:44 +08:00
|
|
|
import os
|
|
|
|
|
2025-06-10 15:29:16 +08:00
|
|
|
from flask import jsonify
|
|
|
|
|
2025-06-10 00:20:44 +08:00
|
|
|
|
|
|
|
@manager.route("/endpoint", methods=["GET"]) # noqa: F821
|
|
|
|
def minio():
|
2025-06-10 15:29:16 +08:00
|
|
|
host = os.getenv("MINIO_VISIT_HOST", "localhost")
|
|
|
|
if not host.startswith("http"):
|
|
|
|
host = "http://" + host
|
|
|
|
port = os.getenv("MINIO_PORT", "9000")
|
|
|
|
return jsonify({"url": f"{host}:{port}/"})
|