1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-21 08:31:27 -05:00

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. // Copyright 2018 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT

View file

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

View file

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