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

13 lines
481 B
Ruby
Raw Normal View History

2012-11-26 11:32:23 +00:00
class Api::V1::MaintainersController < Api::V1::BaseController
before_filter :authenticate_user! unless APP_CONFIG['anonymous_access']
2012-11-28 06:04:40 +00:00
load_and_authorize_resource :platform
2012-11-26 11:32:23 +00:00
def index
2012-11-30 17:15:37 +00:00
@maintainers = BuildList::Package.includes(:project)
.actual.by_platform(@platform)
.like_name(params[:package_name])
2012-11-30 17:15:37 +00:00
.paginate(paginate_params)
2014-08-28 21:46:42 +01:00
respond_to :json
2012-11-26 11:32:23 +00:00
end
end