mirror of
https://mirror.skon.top/github.com/langgenius/dify.git
synced 2026-04-22 01:11:02 +08:00
Some checks failed
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Has been cancelled
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Has been cancelled
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Has been cancelled
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Has been cancelled
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Has been cancelled
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Has been cancelled
Main CI Pipeline / Check Changed Files (push) Has been cancelled
Main CI Pipeline / API Tests (push) Has been cancelled
Main CI Pipeline / Web Tests (push) Has been cancelled
Main CI Pipeline / Style Check (push) Has been cancelled
Main CI Pipeline / VDB Tests (push) Has been cancelled
Main CI Pipeline / DB Migration Test (push) Has been cancelled
Check i18n Files and Create PR / check-and-update (push) Has been cancelled
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"}
|