2012-11-26 11:32:23 +00:00
|
|
|
class Api::V1::MaintainersController < Api::V1::BaseController
|
2016-03-24 15:59:12 +00:00
|
|
|
skip_before_action :check_auth if APP_CONFIG['anonymous_access']
|
2015-03-04 23:19:19 +00:00
|
|
|
before_action :authenticate_user! unless APP_CONFIG['anonymous_access']
|
2012-11-26 11:32:23 +00:00
|
|
|
|
|
|
|
def index
|
2015-03-26 00:26:24 +00:00
|
|
|
authorize @platform = Platform.find(params[:platform_id]), :show?
|
2012-11-30 17:15:37 +00:00
|
|
|
@maintainers = BuildList::Package.includes(:project)
|
|
|
|
.actual.by_platform(@platform)
|
2013-06-17 20:14:20 +01:00
|
|
|
.like_name(params[:package_name])
|
2012-11-30 17:15:37 +00:00
|
|
|
.paginate(paginate_params)
|
2012-11-26 11:32:23 +00:00
|
|
|
end
|
|
|
|
end
|