ticket_priorities_controller.rb 735 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class TicketPrioritiesController < ApplicationController
  3. prepend_before_action :authenticate_and_authorize!
  4. # GET /ticket_priorities
  5. def index
  6. model_index_render(Ticket::Priority, params)
  7. end
  8. # GET /ticket_priorities/1
  9. def show
  10. model_show_render(Ticket::Priority, params)
  11. end
  12. # POST /ticket_priorities
  13. def create
  14. model_create_render(Ticket::Priority, params)
  15. end
  16. # PUT /ticket_priorities/1
  17. def update
  18. model_update_render(Ticket::Priority, params)
  19. end
  20. # DELETE /ticket_priorities/1
  21. def destroy
  22. model_references_check(Ticket::Priority, params)
  23. model_destroy_render(Ticket::Priority, params)
  24. end
  25. end