@@ -1524,7 +1524,7 @@ func registerRoutes(m *web.Router) {
1524
1524
m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .SingleDownloadOrLFS )
1525
1525
m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .SingleDownloadOrLFS )
1526
1526
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 )
1528
1528
// "/*" route is deprecated, and kept for backward compatibility
1529
1529
m .Get ("/*" , context .RepoRefByType (context .RepoRefUnknown ), repo .SingleDownloadOrLFS )
1530
1530
}, repo .MustBeNotEmpty )
@@ -1533,7 +1533,7 @@ func registerRoutes(m *web.Router) {
1533
1533
m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .SingleDownload )
1534
1534
m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .SingleDownload )
1535
1535
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 )
1537
1537
// "/*" route is deprecated, and kept for backward compatibility
1538
1538
m .Get ("/*" , context .RepoRefByType (context .RepoRefUnknown ), repo .SingleDownload )
1539
1539
}, repo .MustBeNotEmpty )
@@ -1542,7 +1542,7 @@ func registerRoutes(m *web.Router) {
1542
1542
m .Get ("/branch/*" , context .RepoRefByType (context .RepoRefBranch ), repo .RenderFile )
1543
1543
m .Get ("/tag/*" , context .RepoRefByType (context .RepoRefTag ), repo .RenderFile )
1544
1544
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 )
1546
1546
}, repo .MustBeNotEmpty )
1547
1547
1548
1548
m .Group ("/commits" , func () {
0 commit comments