Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-13 23:06:19 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-13 23:06:19 +0300
commite08e405ac4c448d8b720ed2ef6181c15e3f3dfc1 (patch)
tree93776fa4469dd70beae8da621805a5c9a0c9cfb7 /config
parent18c8226566edb1c7fa43ccc1bf7a1db33f91489f (diff)
Select namespace where to fork project
Now you can fork project into group or personal namespace. Also I moved fork logic from ProjectsController to own fork resource Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 2534153758b..470fe7f4dc1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -181,7 +181,6 @@ Gitlab::Application.routes.draw do
resources :projects, constraints: { id: /[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/ }, except: [:new, :create, :index], path: "/" do
member do
put :transfer
- post :fork
post :archive
post :unarchive
post :upload_image
@@ -214,11 +213,11 @@ Gitlab::Application.routes.draw do
match "/compare/:from...:to" => "compare#show", as: "compare", via: [:get, :post], constraints: {from: /.+/, to: /.+/}
- resources :snippets, constraints: {id: /\d+/} do
- member do
- get "raw"
- end
+ resources :snippets, constraints: {id: /\d+/} do
+ member do
+ get "raw"
end
+ end
resources :wikis, only: [:show, :edit, :destroy, :create], constraints: {id: /[a-zA-Z.0-9_\-\/]+/} do
collection do
@@ -232,6 +231,8 @@ Gitlab::Application.routes.draw do
end
end
+ resource :fork, only: [:new, :create]
+
resource :repository, only: [:show] do
member do
get "archive", constraints: { format: Gitlab::Regex.archive_formats_regex }