@@ -1531,7 +1531,7 @@ func registerRoutes(m *web.Router) {
15311531 m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .SingleDownloadOrLFS )
15321532 m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .SingleDownloadOrLFS )
15331533 m .Get ("/commit/*" , context .RepoRefByType (context .RepoRefCommit ), repo .SingleDownloadOrLFS )
1534- m .Get ("/blob/{sha}" , context . RepoRefByType ( context . RepoRefBlob ), repo .DownloadByIDOrLFS )
1534+ m .Get ("/blob/{sha}" , repo .DownloadByIDOrLFS )
15351535 // "/*" route is deprecated, and kept for backward compatibility
15361536 m .Get ("/*" , context .RepoRefByType (context .RepoRefUnknown ), repo .SingleDownloadOrLFS )
15371537 }, repo .MustBeNotEmpty )
@@ -1540,7 +1540,7 @@ func registerRoutes(m *web.Router) {
15401540 m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .SingleDownload )
15411541 m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .SingleDownload )
15421542 m .Get ("/commit/*" , context .RepoRefByType (context .RepoRefCommit ), repo .SingleDownload )
1543- m .Get ("/blob/{sha}" , context . RepoRefByType ( context . RepoRefBlob ), repo .DownloadByID )
1543+ m .Get ("/blob/{sha}" , repo .DownloadByID )
15441544 // "/*" route is deprecated, and kept for backward compatibility
15451545 m .Get ("/*" , context .RepoRefByType (context .RepoRefUnknown ), repo .SingleDownload )
15461546 }, repo .MustBeNotEmpty )
@@ -1549,7 +1549,7 @@ func registerRoutes(m *web.Router) {
15491549 m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .RenderFile )
15501550 m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .RenderFile )
15511551 m .Get ("/commit/*" , context .RepoRefByType (context .RepoRefCommit ), repo .RenderFile )
1552- m .Get ("/blob/{sha}" , context . RepoRefByType ( context . RepoRefBlob ), repo .RenderFile )
1552+ m .Get ("/blob/{sha}" , repo .RenderFile )
15531553 }, repo .MustBeNotEmpty )
15541554
15551555 m .Group ("/commits" , func () {
0 commit comments