mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Fix ValidatePath response code
This commit is contained in:
		
							parent
							
								
									2f33bee2a9
								
							
						
					
					
						commit
						c98952937e
					
				@ -69,11 +69,11 @@ namespace Jellyfin.Api.Controllers
 | 
				
			|||||||
        /// Validates path.
 | 
					        /// Validates path.
 | 
				
			||||||
        /// </summary>
 | 
					        /// </summary>
 | 
				
			||||||
        /// <param name="validatePathDto">Validate request object.</param>
 | 
					        /// <param name="validatePathDto">Validate request object.</param>
 | 
				
			||||||
        /// <response code="200">Path validated.</response>
 | 
					        /// <response code="204">Path validated.</response>
 | 
				
			||||||
        /// <response code="404">Path not found.</response>
 | 
					        /// <response code="404">Path not found.</response>
 | 
				
			||||||
        /// <returns>Validation status.</returns>
 | 
					        /// <returns>Validation status.</returns>
 | 
				
			||||||
        [HttpPost("ValidatePath")]
 | 
					        [HttpPost("ValidatePath")]
 | 
				
			||||||
        [ProducesResponseType(StatusCodes.Status200OK)]
 | 
					        [ProducesResponseType(StatusCodes.Status204NoContent)]
 | 
				
			||||||
        [ProducesResponseType(StatusCodes.Status404NotFound)]
 | 
					        [ProducesResponseType(StatusCodes.Status404NotFound)]
 | 
				
			||||||
        public ActionResult ValidatePath([FromBody, Required] ValidatePathDto validatePathDto)
 | 
					        public ActionResult ValidatePath([FromBody, Required] ValidatePathDto validatePathDto)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -118,7 +118,7 @@ namespace Jellyfin.Api.Controllers
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return Ok();
 | 
					            return NoContent();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// <summary>
 | 
					        /// <summary>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user