2013-08-21 19:16:42 +00:00
|
|
|
Zammad::Application.routes.draw do
|
|
|
|
api_path = Rails.configuration.api_path
|
2012-09-20 12:08:02 +00:00
|
|
|
|
2013-08-21 19:16:42 +00:00
|
|
|
# users
|
|
|
|
match api_path + '/users/search', :to => 'users#search', :via => [:get, :post]
|
|
|
|
match api_path + '/users/password_reset', :to => 'users#password_reset_send', :via => :post
|
|
|
|
match api_path + '/users/password_reset_verify', :to => 'users#password_reset_verify', :via => :post
|
|
|
|
match api_path + '/users/password_change', :to => 'users#password_change', :via => :post
|
|
|
|
match api_path + '/users/preferences', :to => 'users#preferences', :via => :put
|
|
|
|
match api_path + '/users/account', :to => 'users#account_remove', :via => :delete
|
|
|
|
match api_path + '/users', :to => 'users#index', :via => :get
|
|
|
|
match api_path + '/users/:id', :to => 'users#show', :via => :get
|
2013-10-21 19:00:58 +00:00
|
|
|
match api_path + '/users/history/:id', :to => 'users#history', :via => :get
|
2013-08-21 19:16:42 +00:00
|
|
|
match api_path + '/users', :to => 'users#create', :via => :post
|
|
|
|
match api_path + '/users/:id', :to => 'users#update', :via => :put
|
2013-11-02 21:32:00 +00:00
|
|
|
match api_path + '/users/image/:hash', :to => 'users#image', :via => :get
|
2012-09-20 12:08:02 +00:00
|
|
|
|
|
|
|
end
|