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
|
||||
class RaidsController < Api::V1::ApiController
|
||||
def all
|
||||
@raids = Raid.all
|
||||
render :all, status: :ok
|
||||
render json: RaidBlueprint.render(Raid.all)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue