mirror of
https://github.com/langgenius/dify.git
synced 2025-11-05 21:30:07 +00:00
Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
18 lines
510 B
Python
18 lines
510 B
Python
from flask_restx import Resource, fields
|
|
|
|
from . import api, console_ns
|
|
|
|
|
|
@console_ns.route("/ping")
|
|
class PingApi(Resource):
|
|
@api.doc("health_check")
|
|
@api.doc(description="Health check endpoint for connection testing")
|
|
@api.response(
|
|
200,
|
|
"Success",
|
|
api.model("PingResponse", {"result": fields.String(description="Health check result", example="pong")}),
|
|
)
|
|
def get(self):
|
|
"""Health check endpoint for connection testing"""
|
|
return {"result": "pong"}
|