external_credentials.rb 1.1 KB

123456789101112131415161718
  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. # CRUD
  5. match api_path + '/external_credentials', to: 'external_credentials#index', via: :get
  6. match api_path + '/external_credentials/:id', to: 'external_credentials#show', via: :get
  7. match api_path + '/external_credentials', to: 'external_credentials#create', via: :post
  8. match api_path + '/external_credentials/:id', to: 'external_credentials#update', via: :put
  9. match api_path + '/external_credentials/:id', to: 'external_credentials#destroy', via: :delete
  10. # callback URL
  11. match api_path + '/external_credentials/:provider/app_verify', to: 'external_credentials#app_verify', via: :post
  12. match api_path + '/external_credentials/:provider/link_account', to: 'external_credentials#link_account', via: :get
  13. match api_path + '/external_credentials/:provider/callback', to: 'external_credentials#callback', via: :get
  14. end