mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-17 13:57:48 -05:00
14 lines
193 B
Ruby
14 lines
193 B
Ruby
class Api::V1::CropsController < ApplicationController
|
|
|
|
# GET /api/v1/crops
|
|
def index
|
|
@crops = Crop.all
|
|
end
|
|
|
|
# GET /crops/1
|
|
def show
|
|
@crop = Crop.find(params[:id])
|
|
end
|
|
|
|
end
|