debian-mirror-gitlab/app/controllers/groups/releases_controller.rb

24 lines
478 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
module Groups
class ReleasesController < Groups::ApplicationController
def index
respond_to do |format|
format.json do
render json: ReleaseSerializer.new.represent(releases)
end
end
end
private
def releases
ReleasesFinder
.new(@group, current_user, { include_subgroups: true })
.execute(preload: false)
.page(params[:page])
.per(30)
end
end
end