Files
dttmr-api/internal/api/handler/health.go
T

19 lines
310 B
Go

package handler
import (
"net/http"
"github.com/robindittmar/dttmr-api/internal/api/response"
)
type healthResponse struct {
Status string `json:"status"`
}
func HealthHandler(w http.ResponseWriter, r *http.Request) {
resp := healthResponse{
Status: "OK",
}
response.JSON(w, http.StatusOK, resp)
}