modified: serv_nginx/api_bb/internal/handlers/auth.go

change request json to snake case form first_name to firstName and from
last_name to lastName
This commit is contained in:
2025-10-10 05:24:53 +05:00
parent 4274a345a9
commit fe28795b84
+2 -2
View File
@@ -57,8 +57,8 @@ func (h *AuthHandler) handleOptions(w http.ResponseWriter, r *http.Request) {
type RegisterRequest struct { type RegisterRequest struct {
Email string `json:"email"` Email string `json:"email"`
Password string `json:"password"` Password string `json:"password"`
FirstName string `json:"first_name"` FirstName string `json:"firstName"`
LastName string `json:"last_name"` LastName string `json:"lastName"`
Phone string `json:"phone"` Phone string `json:"phone"`
Experience string `json:"experience"` Experience string `json:"experience"`
Goals string `json:"goals"` Goals string `json:"goals"`