Removed not needed function.
This commit is contained in:
parent
a480bf0e73
commit
015b0dcd9a
2 changed files with 0 additions and 8 deletions
|
@ -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] )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue