Emi Matchu
600cb6b2ea
I built this API endpoint in anticipation of a change I never actually made! I'll just remove it for now, leaning toward cleanuppery over holding onto something I'm not sure about.
10 lines
208 B
Ruby
10 lines
208 B
Ruby
class PetTypesController < ApplicationController
|
|
def show
|
|
@pet_type = PetType.
|
|
where(species_id: params[:species_id]).
|
|
where(color_id: params[:color_id]).
|
|
first
|
|
|
|
render json: @pet_type
|
|
end
|
|
end
|