integration_smime.rb 1.2 KB

1234567891011121314
  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/smime', to: 'integration/smime#search', via: :post
  5. match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_add', via: :post
  6. match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_delete', via: :delete
  7. match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_list', via: :get
  8. match api_path + '/integration/smime/private_key', to: 'integration/smime#private_key_add', via: :post
  9. match api_path + '/integration/smime/private_key', to: 'integration/smime#private_key_delete', via: :delete
  10. match api_path + '/integration/smime/certificate_download/:id', to: 'integration/smime#certificate_download', via: :get
  11. match api_path + '/integration/smime/private_key_download/:id', to: 'integration/smime#private_key_download', via: :get
  12. end