Skip to content

Commit 7d9723d

Browse files
appleboylunny
andauthored
Update api.go
Co-authored-by: Lunny Xiao <[email protected]>
1 parent 6ce81db commit 7d9723d

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
@@ -1066,7 +1066,7 @@ func Routes() *web.Route {
10661066
m.Post("/migrate", reqToken(), bind(api.MigrateRepoOptions{}), repo.Migrate)
10671067

10681068
m.Group("/{username}/{reponame}", func() {
1069-
m.Get("/compare/*", reqAnyRepoReader(), repo.CompareDiff)
1069+
m.Get("/compare/*", reqRepoReader(unit.TypeCode), repo.CompareDiff)
10701070

10711071
m.Combo("").Get(reqAnyRepoReader(), repo.Get).
10721072
Delete(reqToken(), reqOwner(), repo.Delete).

0 commit comments

Comments
 (0)