mirror of
https://github.com/langgenius/dify.git
synced 2026-02-03 12:01:08 -05:00
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
18 lines
417 B
Python
18 lines
417 B
Python
from pydantic import BaseModel, Field
|
|
|
|
from controllers.fastopenapi import console_router
|
|
|
|
|
|
class PingResponse(BaseModel):
|
|
result: str = Field(description="Health check result", examples=["pong"])
|
|
|
|
|
|
@console_router.get(
|
|
"/ping",
|
|
response_model=PingResponse,
|
|
tags=["console"],
|
|
)
|
|
def ping() -> PingResponse:
|
|
"""Health check endpoint for connection testing."""
|
|
return PingResponse(result="pong")
|