diff --git a/internal/handler/contact.go b/internal/handler/contact.go index 01ea674..c638804 100644 --- a/internal/handler/contact.go +++ b/internal/handler/contact.go @@ -1,7 +1,7 @@ package handler import ( - "fmt" + // "fmt" "net/http" "github.com/google/uuid" @@ -14,15 +14,17 @@ type RequestAddContact struct { type LoginResponse struct { Message string `json:"message"` - Data []model.Data`json:"data"` + // Data []model.Data`json:"data"` } type ContactHandler struct { } +/* func NewContactHandler(store model.Store) *ContactHandler { return &ContactHandler{Store: store} } +*/ func (l *ContactHandler) AddContact(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { @@ -37,8 +39,8 @@ func (l *ContactHandler) AddContact(w http.ResponseWriter, r *http.Request) { defer r.Body.Close() var statusCode int - /* var resp LoginResponse + /* ctx := r.Context() @@ -78,5 +80,5 @@ func (l *ContactHandler) AddContact(w http.ResponseWriter, r *http.Request) { } */ - RespondWithJson(w, statusCode, &resp) + RespondWithJSON(w, statusCode, &resp) }