mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	API: Return primary language and repository language stats API URL (#18396)
This commit is contained in:
		@@ -533,6 +533,11 @@ func Get(ctx *context.APIContext) {
 | 
			
		||||
	//   "200":
 | 
			
		||||
	//     "$ref": "#/responses/Repository"
 | 
			
		||||
 | 
			
		||||
	if err := ctx.Repo.Repository.LoadAttributes(ctx); err != nil {
 | 
			
		||||
		ctx.Error(http.StatusInternalServerError, "Repository.LoadAttributes", err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ctx.JSON(http.StatusOK, convert.ToRepo(ctx.Repo.Repository, ctx.Repo.AccessMode))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user