mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Add swagger comment for MirrorSync (#1747)
* Add swagger comment for MirrorSync * Generate swagger.v1.json
This commit is contained in:
		
				
					committed by
					
						
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							fd6034aaf2
						
					
				
				
					commit
					0161e46b5a
				
			@@ -337,6 +337,15 @@ func Delete(ctx *context.APIContext) {
 | 
			
		||||
 | 
			
		||||
// MirrorSync adds a mirrored repository to the sync queue
 | 
			
		||||
func MirrorSync(ctx *context.APIContext) {
 | 
			
		||||
	// swagger:route POST /repos/{username}/{reponame}/mirror-sync repoMirrorSync
 | 
			
		||||
	//
 | 
			
		||||
	//     Produces:
 | 
			
		||||
	//     - application/json
 | 
			
		||||
	//
 | 
			
		||||
	//     Responses:
 | 
			
		||||
	//       200: empty
 | 
			
		||||
	//       403: forbidden
 | 
			
		||||
 | 
			
		||||
	repo := ctx.Repo.Repository
 | 
			
		||||
 | 
			
		||||
	if !ctx.Repo.IsWriter() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user