1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 06:57:20 +00:00
This commit is contained in:
wxiaoguang
2024-12-19 20:02:00 +08:00
parent 23687a0a71
commit 1cd5fa15c4
3 changed files with 63 additions and 9 deletions

View File

@ -465,6 +465,8 @@ func CommonRoutes() *web.Router {
r.Post("/api/charts", reqPackageAccess(perm.AccessModeWrite), helm.UploadPackage)
}, reqPackageAccess(perm.AccessModeRead))
r.Group("/maven", func() {
// FIXME: this path design is not right.
// It should be `/.../{groupId}/{artifactId}/{version}`, but not `/.../{groupId}-{artifactId}/{version}`
r.Put("/*", reqPackageAccess(perm.AccessModeWrite), maven.UploadPackageFile)
r.Get("/*", maven.DownloadPackageFile)
r.Head("/*", maven.ProvidePackageFileHeader)