integration_smime.rb 1.1 KB

123456789101112
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/integration/smime', to: 'integration/smime#search', via: :post
  4. match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_add', via: :post
  5. match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_delete', via: :delete
  6. match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_list', via: :get
  7. match api_path + '/integration/smime/private_key', to: 'integration/smime#private_key_add', via: :post
  8. match api_path + '/integration/smime/private_key', to: 'integration/smime#private_key_delete', via: :delete
  9. match api_path + '/integration/smime/certificate_download/:id', to: 'integration/smime#certificate_download', via: :get
  10. match api_path + '/integration/smime/private_key_download/:id', to: 'integration/smime#private_key_download', via: :get
  11. end