abf/abf-ideas#83: changed type of #remove_repo_lock_file action, updated text messages
This commit is contained in:
parent
31d65bfcf4
commit
00ffc5ece6
|
@ -35,12 +35,12 @@ class Api::V1::RepositoriesController < Api::V1::BaseController
|
|||
|
||||
def add_repo_lock_file
|
||||
@repository.add_repo_lock_file
|
||||
render_json_response @repository, 'Repository has been locked for sync successfully'
|
||||
render_json_response @repository, "'.repo.lock' file has been added to repository successfully"
|
||||
end
|
||||
|
||||
def remove_repo_lock_file
|
||||
@repository.remove_repo_lock_file
|
||||
render_json_response @repository, 'Repository has been unlocked for sync successfully'
|
||||
render_json_response @repository, "'.repo.lock' file has been removed from repository successfully"
|
||||
end
|
||||
|
||||
def add_project
|
||||
|
|
|
@ -47,7 +47,7 @@ Rosa::Application.routes.draw do
|
|||
delete :remove_project
|
||||
put :signatures
|
||||
put :add_repo_lock_file
|
||||
put :remove_repo_lock_file
|
||||
delete :remove_repo_lock_file
|
||||
}
|
||||
end
|
||||
resources :projects, :only => [:index, :show, :update, :create, :destroy] do
|
||||
|
|
Loading…
Reference in New Issue