ticket_states_controller.rb 693 B

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