1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

Parameter binding for API requests

This commit is contained in:
Bogdan
2024-04-28 23:14:10 +03:00
committed by Mark McDowall
parent 3fbe436138
commit 7166a6c019
25 changed files with 37 additions and 37 deletions
@@ -122,7 +122,7 @@ namespace Sonarr.Api.V3.Config
}
[RestPutById]
public ActionResult<HostConfigResource> SaveHostConfig(HostConfigResource resource)
public ActionResult<HostConfigResource> SaveHostConfig([FromBody] HostConfigResource resource)
{
var dictionary = resource.GetType()
.GetProperties(BindingFlags.Instance | BindingFlags.Public)