diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 1af3252458..ce4e040854 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -1086,9 +1086,9 @@ func Routes() *web.Route { repo.CreateOrgRepoDeprecated) // requires repo scope - m.Combo("/repositories/{id}", - reqToken(), - tokenRequiresScopes(auth_model.AccessTokenScopeCategoryRepository) + m.Combo("/repositories/{id}", + reqToken(), + tokenRequiresScopes(auth_model.AccessTokenScopeCategoryRepository), ).Get(repo.GetByID) // Repos (requires repo scope)