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-30 01:50:25 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-30 01:50:25 +0300
commit9d937293136afd7994218b8dc72bb0956fb19eeb (patch)
tree51e69d234bb71ba46fac6053a070762963a0f67c /config
parenta8df4ee9e2b7881cea46ebc6b3e7889d13e3b5e5 (diff)
Move projects import to separate resource. Add bare repo creation to repository controller
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 470fe7f4dc1..723104daf13 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -186,8 +186,6 @@ Gitlab::Application.routes.draw do
post :upload_image
post :toggle_star
get :autocomplete_sources
- get :import
- put :retry_import
end
scope module: :projects do
@@ -232,8 +230,9 @@ Gitlab::Application.routes.draw do
end
resource :fork, only: [:new, :create]
+ resource :import, only: [:new, :create, :show]
- resource :repository, only: [:show] do
+ resource :repository, only: [:show, :create] do
member do
get "archive", constraints: { format: Gitlab::Regex.archive_formats_regex }
end