public_links_controller.rb 668 B

1234567891011121314151617181920212223242526272829303132
  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 search
  19. model_search_render(PublicLink, params)
  20. end
  21. def destroy
  22. model_destroy_render(PublicLink, params)
  23. end
  24. end