Use router param for filepath in GetRawFile (#19499)

* Use router param for filepath

Signed-off-by: jolheiser <[email protected]>

* Move TreePath back into RepoRefForAPI

Signed-off-by: jolheiser <[email protected]>

Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: 6543 <[email protected]>
This commit is contained in:
John Olheiser
2022-04-26 12:15:45 -05:00
committed by GitHub
co-authored by Lunny Xiao 6543
parent 6cc8aed737
commit 3c140f0d42
+1
View File
@@ -362,6 +362,7 @@ func RepoRefForAPI(next http.Handler) http.Handler {
return
}
ctx.Repo.Commit = commit
ctx.Repo.TreePath = ctx.Params("*")
return
}