Files
kontor/kontor-gin/pkg/controllers/health.go
T
Thomas Peetz 044da5353a
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
add templates for kontor-gin
2026-09-22 19:19:51 +02:00

16 lines
234 B
Go

package controllers
import (
"kontor-api-gin/pkg/globals"
"net/http"
"github.com/gin-gonic/gin"
)
func HealthGetHandler(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"status": "healthy",
"version": globals.Version,
})
}