applications.rb 624 B

1234567891011121314
  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/token', to: 'applications#token', via: :post
  8. # oauth2 provider routes
  9. use_doorkeeper do
  10. skip_controllers :applications, :authorized_applications
  11. end
  12. end