mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 16:10:50 +00:00
Fix API raw requests for commits and tags (#2841)
This commit is contained in:
parent
e6bb8e7a4d
commit
08b124dd47
3 changed files with 33 additions and 2 deletions
|
@ -385,7 +385,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
Put(bind(api.AddCollaboratorOption{}), repo.AddCollaborator).
|
||||
Delete(repo.DeleteCollaborator)
|
||||
}, reqToken())
|
||||
m.Get("/raw/*", context.RepoRef(), repo.GetRawFile)
|
||||
m.Get("/raw/*", context.RepoRefByType(context.RepoRefAny), repo.GetRawFile)
|
||||
m.Get("/archive/*", repo.GetArchive)
|
||||
m.Combo("/forks").Get(repo.ListForks).
|
||||
Post(reqToken(), bind(api.CreateForkOption{}), repo.CreateFork)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue