channel_microsoft_graph.rb 657 B

123456789101112131415161718192021222324
  1. # Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. scope api_path do
  5. resources :channels_admin_microsoft_graph,
  6. controller: 'channels_admin/microsoft_graph',
  7. path: 'channels/admin/microsoft_graph',
  8. only: %i[index destroy] do
  9. member do
  10. post :enable
  11. post :disable
  12. get :folders
  13. end
  14. collection do
  15. post 'group/:id', action: :group
  16. post 'inbound/:id', action: :inbound
  17. post 'verify/:id', action: :verify
  18. end
  19. end
  20. end
  21. end