diff --git a/main.go b/main.go index 53da361..bb8b481 100644 --- a/main.go +++ b/main.go @@ -80,13 +80,6 @@ func init() { func main() { router := gin.Default() - // Health check endpoint - router.GET("/healthz", func(c *gin.Context) { - c.JSON(http.StatusOK, gin.H{ - "status": "healthy", - }) - }) - // Proxy routes if ProxyMode == "azure" { router.GET("/v1/models", handleGetModels) @@ -122,6 +115,13 @@ func main() { router.Any("*path", handleOpenAIProxy) } + // Health check endpoint + router.GET("/healthz", func(c *gin.Context) { + c.JSON(http.StatusOK, gin.H{ + "status": "healthy", + }) + }) + router.Run(Address) }