Echo Liao
Echo Liao
I found the reason. It should POST http://api.myapi2.dev/users. The URI /users/sign_up(.:format) is to request the sign up form page.  **_But**_ there is...
``` api_users POST /users(.:format) api/v1/users#create {:format=>:json, :subdomain=>"api"} user_registration POST /users(.:format) devise/registrations#create ``` Yes, but the URI `/users` has two match. It seem to match with the first one. I don't...
I can't remove it directly. Because i add devise email confirmation for register. It add three routes: ``` user_confirmation POST /users/confirmation(.:format) devise/confirmations#create new_user_confirmation GET /users/confirmation/new(.:format) devise/confirmations#new GET /users/confirmation(.:format) devise/confirmations#show ```...
I just try it, it worked! Many thanks!
I think the forms GET routes should remove too. Such as: ``` new_user_password GET /users/password/new(.:format) devise/passwords#new edit_user_password GET /users/password/edit(.:format) devise/passwords#edit ``` but retain the POST routes: ``` PATCH /users/password(.:format) devise/passwords#update...