18 lines
294 B
Go
18 lines
294 B
Go
package controllers
|
|
|
|
import (
|
|
"kontor-api-gin/pkg/globals"
|
|
"net/http"
|
|
"time"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func HealthGetHandler(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{
|
|
"status": "healthy",
|
|
"version": globals.Version,
|
|
"time": time.Now().UTC().Format(time.RFC3339),
|
|
})
|
|
}
|