applications.rb 789 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. match api_path + '/applications', to: 'applications#index', via: :get
  5. match api_path + '/applications/:id', to: 'applications#show', via: :get
  6. match api_path + '/applications', to: 'applications#create', via: :post
  7. match api_path + '/applications/:id', to: 'applications#update', via: :put
  8. match api_path + '/applications/:id', to: 'applications#destroy', via: :delete
  9. match api_path + '/applications/token', to: 'applications#token', via: :post
  10. # oauth2 provider routes
  11. use_doorkeeper do
  12. skip_controllers :applications, :authorized_applications
  13. end
  14. end