mirror of
https://gitee.com/gitea/gitea
synced 2025-11-04 00:20:25 +08:00
Move Repo APIFormat to convert package (#13787)
* Move Repo APIFormat to convert package * tweek
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user