mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 04:43:59 +01:00
review results
This commit is contained in:
parent
82fe1d3e42
commit
fdfc21a6b8
3 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue