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