tag.rb 704 B

1234567891011121314
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/tags', to: 'tags#list', via: :get
  4. match api_path + '/tags/add', to: 'tags#add', via: :get
  5. match api_path + '/tags/remove', to: 'tags#remove', via: :get
  6. match api_path + '/tag_search', to: 'tags#search', via: :get
  7. match api_path + '/tag_list', to: 'tags#admin_list', via: :get
  8. match api_path + '/tag_list', to: 'tags#admin_create', via: :post
  9. match api_path + '/tag_list/:id', to: 'tags#admin_rename', via: :put
  10. match api_path + '/tag_list/:id', to: 'tags#admin_delete', via: :delete
  11. end