Added health check for Kubernetes to use.
parent
9d5697fa44
commit
5f1ee177ba
@ -0,0 +1,16 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// GET /health
|
||||
// Returns the health status of the application
|
||||
func GetHealth(c *gin.Context) {
|
||||
// TODO: Consider adding health checks to services this app relise on like queue and the database.
|
||||
|
||||
// Send our response
|
||||
c.String(http.StatusOK, "ok")
|
||||
}
|
Loading…
Reference in New Issue