Skip to content

Commit 818f95f

Browse files
Update routers/api/packages/api.go
Co-authored-by: wxiaoguang <[email protected]> Signed-off-by: Exploding Dragon <[email protected]>
1 parent 645d190 commit 818f95f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/api/packages/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ func CommonRoutes() *web.Router {
467467
g.MatchPath("HEAD", "/<group:*>/repodata/<filename>", rpm.CheckRepositoryFileExistence)
468468
g.MatchPath("GET", "/<group:*>/repodata/<filename>", rpm.GetRepositoryFile)
469469
g.MatchPath("PUT", "/<group:*>/upload", reqPackageAccess(perm.AccessModeWrite), rpm.UploadPackageFile)
470+
// this URL pattern is only used internally in the RPM index, it is generated by us
470471
g.MatchPath("HEAD,GET", "/<group:*>/package/<name>/<version>/<architecture>/<*>", rpm.DownloadPackageFile)
471472
g.MatchPath("DELETE", "/<group:*>/package/<name>/<version>/<architecture>", reqPackageAccess(perm.AccessModeWrite), rpm.DeletePackageFile)
472473
}, reqPackageAccess(perm.AccessModeRead))

0 commit comments

Comments
 (0)