处理AI胡乱生成的乱摊子
This commit is contained in:
@@ -117,6 +117,13 @@ func (a *API) setupRoutes() {
|
||||
}
|
||||
|
||||
// healthHandler 健康检查处理函数
|
||||
// @Summary 健康检查
|
||||
// @Description 检查API服务是否正常运行
|
||||
// @Tags health
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} map[string]interface{}
|
||||
// @Router /health [get]
|
||||
func (a *API) healthHandler(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"status": "ok",
|
||||
|
||||
Reference in New Issue
Block a user