21 lines
336 B
Go
21 lines
336 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) {
|
|
ctx := r.Context()
|
|
|
|
resp := healthResponse{
|
|
Status: "ok",
|
|
}
|
|
response.JSON(ctx, w, http.StatusOK, resp)
|
|
}
|