1234567891011121314151617181920212223242526272829303132 |
- Zammad::Application.routes.draw do
- api_path = Rails.configuration.api_path
- # users
- match api_path + '/users/search', to: 'users#search', via: [:get, :post]
- match api_path + '/users/recent', to: 'users#recent', 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/out_of_office', to: 'users#out_of_office', via: :put
- match api_path + '/users/account', to: 'users#account_remove', via: :delete
- match api_path + '/users/avatar', to: 'users#avatar_new', via: :post
- match api_path + '/users/avatar', to: 'users#avatar_list', via: :get
- match api_path + '/users/avatar', to: 'users#avatar_destroy', via: :delete
- match api_path + '/users/avatar/set', to: 'users#avatar_set_default', via: :post
- match api_path + '/users/me', to: 'users#me', via: :get
- match api_path + '/users', to: 'users#index', via: :get
- match api_path + '/users/:id', to: 'users#show', via: :get
- match api_path + '/users/history/:id', to: 'users#history', via: :get
- match api_path + '/users', to: 'users#create', via: :post
- match api_path + '/users/:id', to: 'users#update', via: :put
- match api_path + '/users/:id', to: 'users#destroy', via: :delete
- match api_path + '/users/image/:hash', to: 'users#image', via: :get
- match api_path + '/users/email_verify', to: 'users#email_verify', via: :post
- match api_path + '/users/email_verify_send', to: 'users#email_verify_send', via: :post
- end
|