Initialize AutoLibrary website with Gitea deployment

This commit is contained in:
KenanZhu committed 2026-11-04 09:59:06 +08:00
commit 18216953e7
101 files changed
+12581

No files matched your search

@@ -0,0 +1,22 @@
package health_handler
import (
"log"
"time"
"net/http"
"github.com/gin-gonic/gin"
)
// GET /health
func GetHealth(c *gin.Context) {
log.Printf("[I] HEALTH > get backend server health")
c.JSON(http.StatusOK, gin.H{
"code": http.StatusOK,
"msg": "GET > backend server is running ok",
"data": gin.H{
"timestamp": time.Now().Unix(),
"status": "healthy",
},
})
}