summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-09 03:07:14 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-09 03:07:14 +0000
commit8e7172c40e205a27c204de448ac4fe0551ffa1af (patch)
treec8a1824a1793268daa166e82a2eda5da71a8f15f /config/routes.rb
parent496e1ea9716836b3d8cb0d556d23692c0e68976b (diff)
downloadgitlab-ce-8e7172c40e205a27c204de448ac4fe0551ffa1af.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 3482b0566ce..a9cb462b326 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -155,6 +155,12 @@ InitializerConnections.with_disabled_database_connections do
get '/merge_requests/:merge_request_id', to: 'ide#index', constraints: { merge_request_id: /\d+/ }
get '/', to: 'ide#index'
end
+
+ # Remote host can contain "." characters so it needs a constraint
+ post 'remote/:remote_host(/*remote_path)',
+ as: :remote,
+ to: 'web_ide/remote_ide#index',
+ constraints: { remote_host: %r{[^/?]+} }
end
draw :operations