From 32c0ac96a14bcc42e57f9583d71dd65c804bb577 Mon Sep 17 00:00:00 2001 From: crobibero Date: Fri, 31 Jul 2020 10:17:01 -0600 Subject: [PATCH] fix route params --- Jellyfin.Api/Controllers/DlnaController.cs | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Jellyfin.Api/Controllers/DlnaController.cs b/Jellyfin.Api/Controllers/DlnaController.cs index dcd31a48ba..397299a73f 100644 --- a/Jellyfin.Api/Controllers/DlnaController.cs +++ b/Jellyfin.Api/Controllers/DlnaController.cs @@ -52,16 +52,16 @@ namespace Jellyfin.Api.Controllers /// /// Gets a single profile. /// - /// Profile Id. + /// Profile Id. /// Device profile returned. /// Device profile not found. /// An containing the profile on success, or a if device profile not found. - [HttpGet("Profiles/{Id}")] + [HttpGet("Profiles/{profileId}")] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] - public ActionResult GetProfile([FromRoute] string id) + public ActionResult GetProfile([FromRoute] string profileId) { - var profile = _dlnaManager.GetProfile(id); + var profile = _dlnaManager.GetProfile(profileId); if (profile == null) { return NotFound(); @@ -73,22 +73,22 @@ namespace Jellyfin.Api.Controllers /// /// Deletes a profile. /// - /// Profile id. + /// Profile id. /// Device profile deleted. /// Device profile not found. /// A on success, or a if profile not found. - [HttpDelete("Profiles/{Id}")] + [HttpDelete("Profiles/{profileId}")] [ProducesResponseType(StatusCodes.Status204NoContent)] [ProducesResponseType(StatusCodes.Status404NotFound)] - public ActionResult DeleteProfile([FromRoute] string id) + public ActionResult DeleteProfile([FromRoute] string profileId) { - var existingDeviceProfile = _dlnaManager.GetProfile(id); + var existingDeviceProfile = _dlnaManager.GetProfile(profileId); if (existingDeviceProfile == null) { return NotFound(); } - _dlnaManager.DeleteProfile(id); + _dlnaManager.DeleteProfile(profileId); return NoContent(); } @@ -109,17 +109,17 @@ namespace Jellyfin.Api.Controllers /// /// Updates a profile. /// - /// Profile id. + /// Profile id. /// Device profile. /// Device profile updated. /// Device profile not found. /// A on success, or a if profile not found. - [HttpPost("Profiles/{Id}")] + [HttpPost("Profiles/{profileId}")] [ProducesResponseType(StatusCodes.Status204NoContent)] [ProducesResponseType(StatusCodes.Status404NotFound)] - public ActionResult UpdateProfile([FromRoute] string id, [FromBody] DeviceProfile deviceProfile) + public ActionResult UpdateProfile([FromRoute] string profileId, [FromBody] DeviceProfile deviceProfile) { - var existingDeviceProfile = _dlnaManager.GetProfile(id); + var existingDeviceProfile = _dlnaManager.GetProfile(profileId); if (existingDeviceProfile == null) { return NotFound();