1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-30 19:45:57 +00:00
Lidarr/NzbDrone.Api/Settings/SettingsModule.cs
Mark McDowall c5b845cbee Removed tvdblib from tests
Added settings to API
2013-03-02 13:37:28 -08:00

25 lines
No EOL
612 B
C#

using System.Linq;
using Nancy;
using NzbDrone.Api.Extensions;
using NzbDrone.Core.Configuration;
namespace NzbDrone.Api.Settings
{
public class SettingsModule : NzbDroneApiModule
{
private readonly ConfigService _configService;
public SettingsModule(ConfigService configService)
: base("/settings")
{
_configService = configService;
Get["/"] = x => GetAllSettings();
}
private Response GetAllSettings()
{
var settings = _configService.All();
return settings.AsResponse();
}
}
}