object_manager_attribute.rb 1.1 KB

12345678910111213141516
  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. # object_manager
  5. match api_path + '/object_manager_attributes_list', to: 'object_manager_attributes#list', via: :get
  6. match api_path + '/object_manager_attributes', to: 'object_manager_attributes#index', via: :get
  7. match api_path + '/object_manager_attributes/:id', to: 'object_manager_attributes#show', via: :get
  8. match api_path + '/object_manager_attributes', to: 'object_manager_attributes#create', via: :post
  9. match api_path + '/object_manager_attributes/:id', to: 'object_manager_attributes#update', via: :put
  10. match api_path + '/object_manager_attributes/:id', to: 'object_manager_attributes#destroy', via: :delete
  11. match api_path + '/object_manager_attributes_discard_changes', to: 'object_manager_attributes#discard_changes', via: :post
  12. match api_path + '/object_manager_attributes_execute_migrations', to: 'object_manager_attributes#execute_migrations', via: :post
  13. end