aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API/Controllers/ConfigurationController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-11-20 16:36:02 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-11-20 16:36:02 -0600
commitef5a4f947727cc41a23a21cb49b228fee5e6af13 (patch)
treef9ecc2c08391ed745da08108e0d5f74dc75317c5 /src/slskd/Core/API/Controllers/ConfigurationController.cs
parentd6e62731414ea75fca96265f22997a2d31183b0a (diff)
parent9997ee3fc8ac215b3d172b41f76c7e2c227feb40 (diff)
downloadslskd-ef5a4f947727cc41a23a21cb49b228fee5e6af13.tar.gz
Merge remote-tracking branch 'origin' into bump
Diffstat (limited to 'src/slskd/Core/API/Controllers/ConfigurationController.cs')
-rw-r--r--src/slskd/Core/API/Controllers/ConfigurationController.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/slskd/Core/API/Controllers/ConfigurationController.cs b/src/slskd/Core/API/Controllers/ConfigurationController.cs
index 63b30a64..a7925174 100644
--- a/src/slskd/Core/API/Controllers/ConfigurationController.cs
+++ b/src/slskd/Core/API/Controllers/ConfigurationController.cs
@@ -19,8 +19,11 @@ using Microsoft.Extensions.Options;
namespace slskd.Core.API
{
+ using System;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
+ using Serilog;
+ using IOFile = System.IO.File;
/// <summary>
/// Configuration.
@@ -38,20 +41,21 @@ namespace slskd.Core.API
IStateMonitor<State> applicationStateMonitor)
{
Application = application;
- OptionsShapshot = optionsShapshot;
+ OptionsSnapshot = optionsShapshot;
ApplicationStateMonitor = applicationStateMonitor;
}
private IApplication Application { get; }
- private IOptionsSnapshot<Options> OptionsShapshot { get; }
+ private IOptionsSnapshot<Options> OptionsSnapshot { get; }
private IStateMonitor<State> ApplicationStateMonitor { get; }
+ private ILogger Logger { get; set; } = Log.ForContext(typeof(Program));
[HttpGet]
[Route("")]
[Authorize]
public IActionResult GetOptions()
{
- return Ok(OptionsShapshot.Value);
+ return Ok(OptionsSnapshot.Value);
}
[HttpPut]