user.rb 1.1 KB

12345678910111213141516
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. # users
  4. match api_path + '/users/search', :to => 'users#search', :via => [:get, :post]
  5. match api_path + '/users/password_reset', :to => 'users#password_reset_send', :via => :post
  6. match api_path + '/users/password_reset_verify', :to => 'users#password_reset_verify', :via => :post
  7. match api_path + '/users/password_change', :to => 'users#password_change', :via => :post
  8. match api_path + '/users/preferences', :to => 'users#preferences', :via => :put
  9. match api_path + '/users/account', :to => 'users#account_remove', :via => :delete
  10. match api_path + '/users', :to => 'users#index', :via => :get
  11. match api_path + '/users/:id', :to => 'users#show', :via => :get
  12. match api_path + '/users', :to => 'users#create', :via => :post
  13. match api_path + '/users/:id', :to => 'users#update', :via => :put
  14. end