diff --git a/app/controllers/tickets_controller.rb b/app/controllers/tickets_controller.rb index 86b009d6b..487035006 100644 --- a/app/controllers/tickets_controller.rb +++ b/app/controllers/tickets_controller.rb @@ -3,13 +3,6 @@ class TicketsController < ApplicationController before_action :authentication_check - # GET /api/v1/tickets - def index - @tickets = Ticket.all - - render json: @tickets - end - # GET /api/v1/tickets/1 def show @ticket = Ticket.find( params[:id] ) diff --git a/config/routes/ticket.rb b/config/routes/ticket.rb index 4e09d5725..11bdf30d0 100644 --- a/config/routes/ticket.rb +++ b/config/routes/ticket.rb @@ -4,7 +4,6 @@ Zammad::Application.routes.draw do # tickets match api_path + '/tickets/search', to: 'tickets#search', via: [:get, :post] match api_path + '/tickets/selector', to: 'tickets#selector', via: :post - match api_path + '/tickets', to: 'tickets#index', via: :get match api_path + '/tickets/:id', to: 'tickets#show', via: :get match api_path + '/tickets', to: 'tickets#create', via: :post match api_path + '/tickets/:id', to: 'tickets#update', via: :put