diff --git a/ArchiSteamFarm/IPC/ArchiKestrel.cs b/ArchiSteamFarm/IPC/ArchiKestrel.cs index 188449fcf..cd2cf1f70 100644 --- a/ArchiSteamFarm/IPC/ArchiKestrel.cs +++ b/ArchiSteamFarm/IPC/ArchiKestrel.cs @@ -40,12 +40,12 @@ namespace ArchiSteamFarm.IPC { internal static void OnNewHistoryTarget(HistoryTarget historyTarget = null) { if (HistoryTarget != null) { - HistoryTarget.NewHistoryEntry -= LogController.OnNewHistoryEntry; + HistoryTarget.NewHistoryEntry -= NLogController.OnNewHistoryEntry; HistoryTarget = null; } if (historyTarget != null) { - historyTarget.NewHistoryEntry += LogController.OnNewHistoryEntry; + historyTarget.NewHistoryEntry += NLogController.OnNewHistoryEntry; HistoryTarget = historyTarget; } } diff --git a/ArchiSteamFarm/IPC/Controllers/Api/LogController.cs b/ArchiSteamFarm/IPC/Controllers/Api/NLogController.cs similarity index 98% rename from ArchiSteamFarm/IPC/Controllers/Api/LogController.cs rename to ArchiSteamFarm/IPC/Controllers/Api/NLogController.cs index e229b1851..52177695e 100644 --- a/ArchiSteamFarm/IPC/Controllers/Api/LogController.cs +++ b/ArchiSteamFarm/IPC/Controllers/Api/NLogController.cs @@ -33,8 +33,9 @@ using Newtonsoft.Json; namespace ArchiSteamFarm.IPC.Controllers.Api { [ApiController] + [Route("Api/NLog")] [Route("Api/Log")] - public sealed class LogController : ControllerBase { + public sealed class NLogController : ControllerBase { private static readonly ConcurrentDictionary ActiveLogWebSockets = new ConcurrentDictionary(); [HttpGet]