mirror of
https://github.com/langgenius/dify.git
synced 2026-06-09 01:20:10 +08:00
e0824c2d93
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
18 lines
533 B
Python
18 lines
533 B
Python
from flask_restx import Resource, fields
|
|
|
|
from . import console_ns
|
|
|
|
|
|
@console_ns.route("/ping")
|
|
class PingApi(Resource):
|
|
@console_ns.doc("health_check")
|
|
@console_ns.doc(description="Health check endpoint for connection testing")
|
|
@console_ns.response(
|
|
200,
|
|
"Success",
|
|
console_ns.model("PingResponse", {"result": fields.String(description="Health check result", example="pong")}),
|
|
)
|
|
def get(self):
|
|
"""Health check endpoint for connection testing"""
|
|
return {"result": "pong"}
|