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:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user