12 lines
460 B
Ruby
12 lines
460 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[:package_name])
|
|
.paginate(paginate_params)
|
|
end
|
|
end
|