external_credentials.rb 1014 B

12345678910111213141516
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. # CRUD
  4. match api_path + '/external_credentials', to: 'external_credentials#index', via: :get
  5. match api_path + '/external_credentials/:id', to: 'external_credentials#show', via: :get
  6. match api_path + '/external_credentials', to: 'external_credentials#create', via: :post
  7. match api_path + '/external_credentials/:id', to: 'external_credentials#update', via: :put
  8. match api_path + '/external_credentials/:id', to: 'external_credentials#destroy', via: :delete
  9. # callback URL
  10. match api_path + '/external_credentials/:provider/app_verify', to: 'external_credentials#app_verify', via: :post
  11. match api_path + '/external_credentials/:provider/link_account', to: 'external_credentials#link_account', via: :get
  12. match api_path + '/external_credentials/:provider/callback', to: 'external_credentials#callback', via: :get
  13. end