@@ -1524,7 +1524,7 @@ func registerRoutes(m *web.Router) {
15241524 m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .SingleDownloadOrLFS )
15251525 m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .SingleDownloadOrLFS )
15261526 m .Get ("/commit/*" , context .RepoRefByType (context .RepoRefCommit ), repo .SingleDownloadOrLFS )
1527- m .Get ("/blob/{sha}" , context . RepoRefByType ( context . RepoRefBlob ), repo .DownloadByIDOrLFS )
1527+ m .Get ("/blob/{sha}" , repo .DownloadByIDOrLFS )
15281528 // "/*" route is deprecated, and kept for backward compatibility
15291529 m .Get ("/*" , context .RepoRefByType (context .RepoRefUnknown ), repo .SingleDownloadOrLFS )
15301530 }, repo .MustBeNotEmpty )
@@ -1533,7 +1533,7 @@ func registerRoutes(m *web.Router) {
15331533 m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .SingleDownload )
15341534 m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .SingleDownload )
15351535 m .Get ("/commit/*" , context .RepoRefByType (context .RepoRefCommit ), repo .SingleDownload )
1536- m .Get ("/blob/{sha}" , context . RepoRefByType ( context . RepoRefBlob ), repo .DownloadByID )
1536+ m .Get ("/blob/{sha}" , repo .DownloadByID )
15371537 // "/*" route is deprecated, and kept for backward compatibility
15381538 m .Get ("/*" , context .RepoRefByType (context .RepoRefUnknown ), repo .SingleDownload )
15391539 }, repo .MustBeNotEmpty )
@@ -1542,7 +1542,7 @@ func registerRoutes(m *web.Router) {
15421542 m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .RenderFile )
15431543 m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .RenderFile )
15441544 m .Get ("/commit/*" , context .RepoRefByType (context .RepoRefCommit ), repo .RenderFile )
1545- m .Get ("/blob/{sha}" , context . RepoRefByType ( context . RepoRefBlob ), repo .RenderFile )
1545+ m .Get ("/blob/{sha}" , repo .RenderFile )
15461546 }, repo .MustBeNotEmpty )
15471547
15481548 m .Group ("/commits" , func () {
0 commit comments