debian-mirror-gitlab/app/controllers/groups/releases_controller.rb
2022-07-17 14:43:12 +02:00

26 lines
521 B
Ruby

# frozen_string_literal: true
module Groups
class ReleasesController < Groups::ApplicationController
feature_category :release_evidence
urgency :low
def index
respond_to do |format|
format.json do
render json: ReleaseSerializer.new.represent(releases)
end
end
end
private
def releases
Releases::GroupReleasesFinder
.new(@group, current_user)
.execute(preload: false)
.page(params[:page])
.per(30)
end
end
end