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

21 lines
368 B
Go
Raw Normal View History

package http
import (
2023-01-02 00:11:47 +00:00
"fmt"
"net/http"
2021-11-14 21:15:28 +00:00
"source.toby3d.me/toby3d/auth/internal/common"
)
2023-01-02 00:11:47 +00:00
type Handler struct{}
2023-01-02 00:11:47 +00:00
func NewHandler() *Handler {
return &Handler{}
}
2023-08-05 02:50:16 +00:00
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
2023-01-02 00:11:47 +00:00
w.Header().Set(common.HeaderContentType, common.MIMETextPlainCharsetUTF8)
fmt.Fprint(w, `👌`)
w.WriteHeader(http.StatusOK)
}