Unused routes in workhorse
Within the workhorse [routes](https://gitlab.com/gitlab-org/gitlab/-/blob/master/workhorse/internal/upstream/routes.go#L50) a `ciAPIPattern` is being defined which is [not in use any more](https://gitlab.com/gitlab-org/gitlab-foss/issues/27585). As far as i understood we do not support the `/ci/api` any more so I think the routes using the `ciAPIPattern` should be removed. The following lines should be removed: https://gitlab.com/gitlab-org/gitlab/-/blob/master/workhorse/internal/upstream/routes.go#L50: ```go ciAPIPattern = `^/ci/api/` ``` https://gitlab.com/gitlab-org/gitlab/-/blob/master/workhorse/internal/upstream/routes.go#L249: ```go u.route("POST", ciAPIPattern+`v1/builds/[0-9]+/artifacts\z`, contentEncodingHandler(upload.Artifacts(api, signingProxy, preparer))), ``` https://gitlab.com/gitlab-org/gitlab/-/blob/master/workhorse/internal/upstream/routes.go#L263: ```go u.route("", ciAPIPattern+`v1/builds/register.json\z`, ciAPILongPolling), ``` https://gitlab.com/gitlab-org/gitlab/-/blob/master/workhorse/internal/upstream/routes.go#L354: ```go u.route("", ciAPIPattern, proxy), ```
issue