From fe28795b84a53c3d985c89a224cb8e2d2fbe3167 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Fri, 10 Oct 2025 05:24:53 +0500 Subject: [PATCH] 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 --- serv_nginx/api_bb/internal/handlers/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serv_nginx/api_bb/internal/handlers/auth.go b/serv_nginx/api_bb/internal/handlers/auth.go index 4564da2..91ac101 100644 --- a/serv_nginx/api_bb/internal/handlers/auth.go +++ b/serv_nginx/api_bb/internal/handlers/auth.go @@ -57,8 +57,8 @@ func (h *AuthHandler) handleOptions(w http.ResponseWriter, r *http.Request) { type RegisterRequest struct { Email string `json:"email"` Password string `json:"password"` - FirstName string `json:"first_name"` - LastName string `json:"last_name"` + FirstName string `json:"firstName"` + LastName string `json:"lastName"` Phone string `json:"phone"` Experience string `json:"experience"` Goals string `json:"goals"`