Settings return with default values (via reflection)

This commit is contained in:
Mark McDowall 2013-03-03 17:07:22 -08:00
parent 3430ad3ee8
commit 62c1be1634
5 changed files with 19 additions and 10 deletions

View file

@ -25,7 +25,7 @@ namespace NzbDrone.Api.Settings
if(collection.HasValue && Boolean.Parse(collection.Value))
return _configService.All().AsResponse();
return _configService.All().ToDictionary(c => c.Key, c => c.Value).AsResponse();
return _configService.AllWithDefaults().AsResponse();
}
}
}