From 015b0dcd9af4c188f9e3b067d9d0750040b29aa1 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 16 Dec 2015 09:05:12 +0100 Subject: [PATCH] Removed not needed function. --- app/controllers/tickets_controller.rb | 7 ------- config/routes/ticket.rb | 1 - 2 files changed, 8 deletions(-) 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