Commit 8d888d73 authored by Steve Abrams's avatar Steve Abrams

Add project level route for conan package uploads

parent b5a8ccb9
---
title: Add project level route for conan package uploads
merge_request: 558
author:
type: added
......@@ -219,6 +219,7 @@ func (u *upstream) configureRoutes() {
// Conan Artifact Repository
route("PUT", apiPattern+`v4/packages/conan/`, upload.BodyUploader(api, signingProxy, preparers.packages)),
route("PUT", apiPattern+`v4/projects/[0-9]+/packages/conan/`, upload.BodyUploader(api, signingProxy, preparers.packages)),
// NuGet Artifact Repository
route("PUT", apiPattern+`v4/projects/[0-9]+/packages/nuget/`, upload.Accelerate(api, signingProxy, preparers.packages)),
......
......@@ -369,6 +369,7 @@ func testPackageFileUpload(t *testing.T, resource string) {
func TestPackageFilesUpload(t *testing.T) {
routes := []string{
"/api/v4/packages/conan/v1/files",
"/api/v4/projects/2412/packages/conan/v1/files",
"/api/v4/projects/2412/packages/maven/v1/files",
}
......
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