tag.rb 785 B

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. match api_path + '/tags', to: 'tags#list', via: :get
  5. match api_path + '/tags/add', to: 'tags#add', via: :post
  6. match api_path + '/tags/remove', to: 'tags#remove', via: :delete
  7. match api_path + '/tag_search', to: 'tags#search', via: :get
  8. match api_path + '/tag_list', to: 'tags#admin_list', via: :get
  9. match api_path + '/tag_list', to: 'tags#admin_create', via: :post
  10. match api_path + '/tag_list/:id', to: 'tags#admin_rename', via: :put
  11. match api_path + '/tag_list/:id', to: 'tags#admin_delete', via: :delete
  12. end