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:
authorValery Sizov <valery@gitlab.com>2015-01-28 02:37:19 +0300
committerValery Sizov <valery@gitlab.com>2015-02-05 23:50:34 +0300
commit5194214e3a2f97accf0c8119b4cb39fd4fcef5db (patch)
tree7320257c4470abadd90a0f17fd92f408143b6bb1 /config
parent0a9cab4ee65f2b42c56989698c401cab60d68b53 (diff)
GitLab integration. Importer
Diffstat (limited to 'config')
-rw-r--r--config/initializers/doorkeeper.rb2
-rw-r--r--config/routes.rb21
2 files changed, 17 insertions, 6 deletions
diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb
index e9b843e29b4..9da7ebf4290 100644
--- a/config/initializers/doorkeeper.rb
+++ b/config/initializers/doorkeeper.rb
@@ -27,7 +27,7 @@ Doorkeeper.configure do
# Access token expiration time (default 2 hours).
# If you want to disable expiration, set this to nil.
- # access_token_expires_in 2.hours
+ access_token_expires_in nil
# Reuse access token for the same resource owner within an application (disabled by default)
# Rationale: https://github.com/doorkeeper-gem/doorkeeper/issues/383
diff --git a/config/routes.rb b/config/routes.rb
index f0abd876ecd..fde76b16064 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -51,14 +51,25 @@ Gitlab::Application.routes.draw do
end
get '/s/:username' => 'snippets#user_index', as: :user_snippets, constraints: { username: /.*/ }
+
#
- # Github importer area
+ # Importers
#
- resource :github_import, only: [:create, :new] do
- get :status
- get :callback
- get :jobs
+ namespace :importers do
+ resource :github, only: [:create, :new] do
+ get :status
+ get :callback
+ get :jobs
+ end
+
+ resource :gitlab, only: [:create, :new] do
+ get :status
+ get :callback
+ get :jobs
+ end
end
+
+
#
# Explore area