15 lines
315 B
Ruby
15 lines
315 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V1
|
|
class RaidsController < Api::V1::ApiController
|
|
def all
|
|
render json: RaidBlueprint.render(Raid.all, view: :full)
|
|
end
|
|
|
|
def groups
|
|
render json: RaidGroupBlueprint.render(RaidGroup.all, view: :full)
|
|
end
|
|
end
|
|
end
|
|
end
|