raw下载原文件需要登录
This commit is contained in:
parent
7cc49acd7e
commit
e4f9b9f90c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue