Merge pull request #744 from warpc/742-api_project_build_lists
[refs #736] add project build lists api.
This commit is contained in:
commit
a0eb3e1404
|
@ -8,7 +8,7 @@ class Api::V1::BuildListsController < Api::V1::BaseController
|
|||
load_and_authorize_resource :build_list, :only => [:show, :create, :cancel, :publish, :reject_publish]
|
||||
|
||||
def index
|
||||
filter = BuildList::Filter.new(nil, current_user, params[:filter] || {})
|
||||
filter = BuildList::Filter.new(@project, current_user, params[:filter] || {})
|
||||
@build_lists = filter.find.scoped(:include => [:save_to_platform, :project, :user, :arch])
|
||||
@build_lists = @build_lists.recent.paginate(paginate_params)
|
||||
end
|
||||
|
|
|
@ -54,6 +54,7 @@ Rosa::Application.routes.draw do
|
|||
delete :remove_member
|
||||
put :update_member
|
||||
}
|
||||
resources :build_lists, :only => :index
|
||||
end
|
||||
resources :users, :only => [:show]
|
||||
get 'user' => 'users#show_current_user'
|
||||
|
|
Loading…
Reference in New Issue