trabajo-afectivo/config/routes/integration_smime.rb

13 lines
1.1 KiB
Ruby
Raw Normal View History

2020-06-02 11:01:16 +00:00
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
match api_path + '/integration/smime', to: 'integration/smime#search', via: :post
match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_add', via: :post
match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_delete', via: :delete
match api_path + '/integration/smime/certificate', to: 'integration/smime#certificate_list', via: :get
match api_path + '/integration/smime/private_key', to: 'integration/smime#private_key_add', via: :post
match api_path + '/integration/smime/private_key', to: 'integration/smime#private_key_delete', via: :delete
match api_path + '/integration/smime/certificate_download/:id', to: 'integration/smime#certificate_download', via: :get
match api_path + '/integration/smime/private_key_download/:id', to: 'integration/smime#private_key_download', via: :get
2020-06-02 11:01:16 +00:00
end