auth/internal/health/delivery/http/health_http.go

21 lines
368 B
Go

package http
import (
"fmt"
"net/http"
"source.toby3d.me/toby3d/auth/internal/common"
)
type Handler struct{}
func NewHandler() *Handler {
return &Handler{}
}
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set(common.HeaderContentType, common.MIMETextPlainCharsetUTF8)
fmt.Fprint(w, `👌`)
w.WriteHeader(http.StatusOK)
}