integration_exchange.rb 1.2 KB

123456789101112131415
  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 + '/integration/exchange/index', to: 'integration/exchange#index', via: :get
  5. match api_path + '/integration/exchange/oauth', to: 'integration/exchange#destroy_oauth', via: :delete
  6. match api_path + '/integration/exchange/autodiscover', to: 'integration/exchange#autodiscover', via: :post
  7. match api_path + '/integration/exchange/folders', to: 'integration/exchange#folders', via: :post
  8. match api_path + '/integration/exchange/mapping', to: 'integration/exchange#mapping', via: :post
  9. match api_path + '/integration/exchange/job_try', to: 'integration/exchange#job_try_index', via: :get
  10. match api_path + '/integration/exchange/job_try', to: 'integration/exchange#job_try_create', via: :post
  11. match api_path + '/integration/exchange/job_start', to: 'integration/exchange#job_start_index', via: :get
  12. match api_path + '/integration/exchange/job_start', to: 'integration/exchange#job_start_create', via: :post
  13. end