applications.rb 712 B

123456789101112131415
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/applications', to: 'applications#index', via: :get
  4. match api_path + '/applications/:id', to: 'applications#show', via: :get
  5. match api_path + '/applications', to: 'applications#create', via: :post
  6. match api_path + '/applications/:id', to: 'applications#update', via: :put
  7. match api_path + '/applications/:id', to: 'applications#destroy', via: :delete
  8. match api_path + '/applications/token', to: 'applications#token', via: :post
  9. # oauth2 provider routes
  10. use_doorkeeper do
  11. skip_controllers :applications, :authorized_applications
  12. end
  13. end