rosa-build/app/controllers/api/v1/maintainers_controller.rb

12 lines
478 B
Ruby

class Api::V1::MaintainersController < Api::V1::BaseController
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
load_and_authorize_resource :platform
def index
@maintainers = BuildList::Package.includes(:project)
.actual.by_platform(@platform)
.like_name(params[:filter].try(:[], :package_name))
.paginate(paginate_params)
end
end