Fix build issue

Commented out some code for now
This commit is contained in:
phoenix
2025-10-29 19:52:47 -04:00
parent cf518fdcfb
commit e3a23aae6d
+6 -4
View File
@@ -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)
}