Browse Source

Merge pull request #1973 from luxflow/master

fix dlna update profile
Luke 9 năm trước cách đây
mục cha
commit
352ff3b212
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      MediaBrowser.Api/Dlna/DlnaService.cs

+ 3 - 3
MediaBrowser.Api/Dlna/DlnaService.cs

@@ -31,11 +31,11 @@ namespace MediaBrowser.Api.Dlna
         public string Id { get; set; }
     }
 
-    [Route("/Dlna/Profiles/{ProfileId}", "POST", Summary = "Updates a profile")]
+    [Route("/Dlna/Profiles/{Id}", "POST", Summary = "Updates a profile")]
     public class UpdateProfile : DeviceProfile, IReturnVoid
     {
-        [ApiMember(Name = "ProfileId", Description = "Profile Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
-        public string ProfileId { get; set; }
+        [ApiMember(Name = "Id", Description = "Profile Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
+        public string Id { get; set; }
     }
 
     [Route("/Dlna/Profiles", "POST", Summary = "Creates a profile")]