raw下载原文件需要登录

This commit is contained in:
xxq250 2024-11-11 11:24:15 +08:00
parent 7cc49acd7e
commit e4f9b9f90c
1 changed files with 1 additions and 1 deletions

View File

@ -1435,7 +1435,7 @@ func registerRoutes(m *web.Route) {
m.Get("/blob/{sha}", context.RepoRefByType(context.RepoRefBlob), repo.DownloadByID)
// "/*" route is deprecated, and kept for backward compatibility
m.Get("/*", context.RepoRefByType(context.RepoRefLegacy), repo.SingleDownload)
}, repo.MustBeNotEmpty, reqRepoCodeReader)
}, reqSignIn, repo.MustBeNotEmpty, reqRepoCodeReader)
m.Group("/render", func() {
m.Get("/branch/*", context.RepoRefByType(context.RepoRefBranch), repo.RenderFile)