Refactor RaidsController for blueprinter
This commit is contained in:
parent
290099e2f4
commit
44e92733d3
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue