drapergeek/findit

View on GitHub
app/controllers/api/items_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Api::ItemsController < ApplicationController
  respond_to :json

  def index
    respond_with Item.all
  end

  def show
    respond_with Item.find(params[:id])
  end
end