abf/abf-ideas#83: changed type of #remove_repo_lock_file action, updated text messages

This commit is contained in:
Vokhmin Alexey V 2013-07-29 17:14:55 +04:00
parent 31d65bfcf4
commit 00ffc5ece6
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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