Refactor RaidsController for blueprinter

This commit is contained in:
Justin Edmund 2022-12-21 15:35:05 -08:00
parent 290099e2f4
commit 44e92733d3

View file

@ -4,8 +4,7 @@ module Api
module V1 module V1
class RaidsController < Api::V1::ApiController class RaidsController < Api::V1::ApiController
def all def all
@raids = Raid.all render json: RaidBlueprint.render(Raid.all)
render :all, status: :ok
end end
end end
end end