mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Fix release API URL generation (#8234)
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							3c0e6d1126
						
					
				
				
					commit
					09e452f84a
				
			@@ -65,7 +65,7 @@ func (r *Release) LoadAttributes() error {
 | 
			
		||||
 | 
			
		||||
// APIURL the api url for a release. release must have attributes loaded
 | 
			
		||||
func (r *Release) APIURL() string {
 | 
			
		||||
	return fmt.Sprintf("%sapi/v1/%s/releases/%d",
 | 
			
		||||
	return fmt.Sprintf("%sapi/v1/repos/%s/releases/%d",
 | 
			
		||||
		setting.AppURL, r.Repo.FullName(), r.ID)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user