Skip to content

Commit

Permalink
remove the unavailable controller methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair Anderson committed Mar 10, 2015
1 parent 02b97b6 commit f7bc7da
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/controllers/items_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@ class ItemsController < ApplicationController
before_action :require_login, only: [:new, :create, :edit, :update, :toggle]
before_action :set_item, only: [:show]
before_action :set_user_item, only: [:edit, :update, :toggle]

swagger_controller :items, "Item Management"

swagger_api :index do
summary "Fetches all Current items"
notes "This lists items"
# param :query, :page, :integer, :optional, "Page number"
# param :path, :nested_id, :integer, :optional, "Team Id"
# response :unauthorized
# response :not_acceptable, "The request you made is not acceptable"
# response :requested_range_not_satisfiable
end


def index
order = params[:newest] ? {created_at: :desc} : {score: :desc}

Expand Down

0 comments on commit f7bc7da

Please sign in to comment.