Commit d2a1b602 authored by Josianne Hyson's avatar Josianne Hyson Committed by Alessio Caiazza

Add route for group imports via the UI

Group imports via the UI has been implemented in the GitLab application
as part of https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29270.
Ensure that the workhorse configuration is setup for this at the same
time.

Relates to: https://gitlab.com/gitlab-org/gitlab/-/issues/211807
parent c4f1edeb
---
title: Add routes for Group import via the UI
merge_request: 493
author:
type: added
......@@ -227,6 +227,8 @@ func (u *upstream) configureRoutes() {
// Project Import via UI upload acceleration
route("POST", importPattern+`gitlab_project`, upload.Accelerate(api, signingProxy)),
// Group Import via UI upload acceleration
route("POST", importPattern+`gitlab_group`, upload.Accelerate(api, signingProxy)),
// Explicitly proxy API requests
route("", apiPattern, proxy),
......
......@@ -124,6 +124,7 @@ func TestAcceleratedUpload(t *testing.T) {
{"POST", `/api/v4/groups/import`, true},
{"POST", `/api/v4/projects/import`, true},
{"POST", `/import/gitlab_project`, true},
{"POST", `/import/gitlab_group`, true},
{"POST", `/api/v4/projects/9001/packages/pypi`, true},
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment