review results
This commit is contained in:
parent
82fe1d3e42
commit
fdfc21a6b8
|
@ -1,4 +1,3 @@
|
|||
// Copyright 2024 The Forgejo Authors. All rights reserved.
|
||||
// Copyright 2018 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
// swagger:response parameterBodies
|
||||
type swaggerParameterBodies struct {
|
||||
// in:body
|
||||
Star ffed.ForgeLike
|
||||
ForgeLike ffed.ForgeLike
|
||||
|
||||
// in:body
|
||||
AddCollaboratorOption api.AddCollaboratorOption
|
||||
|
|
Loading…
Reference in New Issue