public_links_controller.rb 604 B

12345678910111213141516171819202122232425262728
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class PublicLinksController < ApplicationController
  3. include CanPrioritize
  4. prepend_before_action :authorize!, except: %i[show index]
  5. prepend_before_action :authentication_check, except: %i[show index]
  6. def index
  7. model_index_render(PublicLink, params)
  8. end
  9. def show
  10. model_show_render(PublicLink, params)
  11. end
  12. def create
  13. model_create_render(PublicLink, params)
  14. end
  15. def update
  16. model_update_render(PublicLink, params)
  17. end
  18. def destroy
  19. model_destroy_render(PublicLink, params)
  20. end
  21. end