hensei-api/app/controllers/api/v1/raids_controller.rb

15 lines
302 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)
end
end
end
end