mirror of
https://github.com/langgenius/dify.git
synced 2026-06-11 02:31:13 +08:00
13 lines
361 B
Python
13 lines
361 B
Python
from flask_restx import Resource
|
|
|
|
from controllers.openapi import openapi_ns
|
|
from controllers.openapi._contract import returns
|
|
from controllers.openapi._models import HealthResponse
|
|
|
|
|
|
@openapi_ns.route("/_health")
|
|
class HealthApi(Resource):
|
|
@returns(200, HealthResponse, description="Health check")
|
|
def get(self):
|
|
return HealthResponse(ok=True)
|