public_link.rb 775 B

1234567891011121314
  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. # public_links
  5. match api_path + '/public_links', to: 'public_links#index', via: :get
  6. match api_path + '/public_links/search', to: 'public_links#search', via: %i[get post]
  7. match api_path + '/public_links/:id', to: 'public_links#show', via: :get
  8. match api_path + '/public_links', to: 'public_links#create', via: :post
  9. match api_path + '/public_links/:id', to: 'public_links#update', via: :put
  10. match api_path + '/public_links/:id', to: 'public_links#destroy', via: :delete
  11. match api_path + '/public_links_prio', to: 'public_links#prio', via: :post
  12. end