Make transfer action in project controller

This commit is contained in:
Dmitriy Zaporozhets 2013-03-25 10:48:30 +02:00
parent ff35b37fd2
commit e292d7c17b
6 changed files with 11 additions and 26 deletions

View file

@ -167,6 +167,10 @@ Gitlab::Application.routes.draw do
# Project Area
#
resources :projects, constraints: { id: /(?:[a-zA-Z.0-9_\-]+\/)?[a-zA-Z.0-9_\-]+/ }, except: [:new, :create, :index], path: "/" do
member do
put :transfer
end
resources :blob, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show], constraints: {id: /.+/, format: /(html|js)/ }
resources :edit_tree, only: [:show, :update], constraints: {id: /.+/}, path: 'edit'