integration_pgp.rb 878 B

12345678910111213
  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/pgp', to: 'integration/pgp#search', via: :post
  5. match api_path + '/integration/pgp/status', to: 'integration/pgp#status', via: :get
  6. match api_path + '/integration/pgp/key', to: 'integration/pgp#key_list', via: :get
  7. match api_path + '/integration/pgp/key/:id', to: 'integration/pgp#key_show', via: :get
  8. match api_path + '/integration/pgp/key', to: 'integration/pgp#key_add', via: :post
  9. match api_path + '/integration/pgp/key/:id', to: 'integration/pgp#key_delete', via: :delete
  10. match api_path + '/integration/pgp/key_download/:id', to: 'integration/pgp#key_download', via: :get
  11. end