hummingbird-me/hummingbird

View on GitHub
app/controllers/franchises_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class FranchisesController < ApplicationController
  def index
    franchises = Franchise.where(id: params[:ids]).includes(anime: :genres)
    render json: franchises
  end

  def show
    franchise = Franchise.find(params[:id])
    render json: franchise
  end
end