summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAishwarya Subramanian <asubramanian@gitlab.com>2019-08-16 00:34:28 +0530
committerAishwarya Subramanian <asubramanian@gitlab.com>2019-08-16 00:34:28 +0530
commit2147945e2a61fbd13a71d7c22e86cec39d18e168 (patch)
tree1c7096c3053d2372614abf4ec7bcc58c685e81cc
parent7ac5dc4824eaed8059f66b0be5a265b9abe97b44 (diff)
downloadgitlab-ce-username_suggests.tar.gz
Nested username route under '-' to avoid conflictsusername_suggests
-rw-r--r--config/routes.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 59718ca2ab0..d633228a495 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -109,6 +109,7 @@ Rails.application.routes.draw do
Gitlab.ee do
draw :smartcard
draw :jira_connect
+ draw :username
end
Gitlab.ee do
@@ -189,9 +190,5 @@ Rails.application.routes.draw do
root to: "root#index"
- Gitlab.ee do
- draw :username
- end
-
get '*unmatched_route', to: 'application#route_not_found'
end