diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 1849406..8fafffe 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -7,7 +7,7 @@ def me render json: @user end - # POST /users/confirm_email + # PUT /users/confirm_email def confirm_email confirm = ConfirmEmailKey.find_by(key: confirm_email_params[:key]) if confirm.nil? diff --git a/config/routes.rb b/config/routes.rb index d677826..8db77f7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,8 +16,7 @@ resource :users do get '/', to: 'users#index', on: :collection get '/me', to: 'users#me', on: :collection - post '/confirm_email', to: 'users#confirm_email', on: :collection - post '/resend_confirm', to: 'users#resend_confirm', on: :collection + put '/confirm_email', to: 'users#confirm_email', on: :collection post '/login', to: 'users#login', on: :collection post '/register', to: 'users#register', on: :collection delete '/logout', to: 'users#logout', on: :collection