Skip to content

Commit 983abda

Browse files
committed
no ReferencesGitRepo
1 parent fbbb1ba commit 983abda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ func Routes() *web.Router {
14231423
m.Get("/tags/{sha}", repo.GetAnnotatedTag)
14241424
m.Get("/notes/{sha}", repo.GetNote)
14251425
}, context.ReferencesGitRepo(true), reqRepoReader(unit.TypeCode))
1426-
m.Post("/diffpatch", mustEnableEditor, reqToken(), context.ReferencesGitRepo(), bind(api.ApplyDiffPatchFileOptions{}), repo.ReqChangeRepoFileOptionsAndCheck, repo.ApplyDiffPatch)
1426+
m.Post("/diffpatch", mustEnableEditor, reqToken(), bind(api.ApplyDiffPatchFileOptions{}), repo.ReqChangeRepoFileOptionsAndCheck, repo.ApplyDiffPatch)
14271427
m.Group("/contents", func() {
14281428
m.Get("", repo.GetContentsList)
14291429
m.Get("/*", repo.GetContents)

0 commit comments

Comments
 (0)