mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-07-08 19:00:02 +02:00
Move Repo APIFormat to convert package (#13787)
* Move Repo APIFormat to convert package * tweek
This commit is contained in:
parent
2b4a08e962
commit
7ac8a770e1
18 changed files with 201 additions and 193 deletions
|
@ -492,7 +492,7 @@ func GetTeamRepos(ctx *context.APIContext) {
|
|||
ctx.Error(http.StatusInternalServerError, "GetTeamRepos", err)
|
||||
return
|
||||
}
|
||||
repos[i] = repo.APIFormat(access)
|
||||
repos[i] = convert.ToRepo(repo, access)
|
||||
}
|
||||
ctx.JSON(http.StatusOK, repos)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue