We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce81db commit 7d9723dCopy full SHA for 7d9723d
routers/api/v1/api.go
@@ -1066,7 +1066,7 @@ func Routes() *web.Route {
1066
m.Post("/migrate", reqToken(), bind(api.MigrateRepoOptions{}), repo.Migrate)
1067
1068
m.Group("/{username}/{reponame}", func() {
1069
- m.Get("/compare/*", reqAnyRepoReader(), repo.CompareDiff)
+ m.Get("/compare/*", reqRepoReader(unit.TypeCode), repo.CompareDiff)
1070
1071
m.Combo("").Get(reqAnyRepoReader(), repo.Get).
1072
Delete(reqToken(), reqOwner(), repo.Delete).
0 commit comments