review results

This commit is contained in:
Michael Jerger 2024-05-07 07:38:20 +02:00
parent 82fe1d3e42
commit fdfc21a6b8
3 changed files with 2 additions and 6 deletions

View file

@ -1,4 +1,3 @@
// Copyright 2024 The Forgejo Authors. All rights reserved.
// Copyright 2018 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

View file

@ -1011,10 +1011,7 @@ func Routes() *web.Route {
repo.CreateOrgRepoDeprecated)
// requires repo scope
m.Combo("/repositories/{id}",
reqToken(),
tokenRequiresScopes(auth_model.AccessTokenScopeCategoryRepository),
).Get(repo.GetByID)
m.Combo("/repositories/{id}", reqToken(), tokenRequiresScopes(auth_model.AccessTokenScopeCategoryRepository)).Get(repo.GetByID)
// Repos (requires repo scope)
m.Group("/repos", func() {

View file

@ -17,7 +17,7 @@ import (
// swagger:response parameterBodies
type swaggerParameterBodies struct {
// in:body
Star ffed.ForgeLike
ForgeLike ffed.ForgeLike
// in:body
AddCollaboratorOption api.AddCollaboratorOption