diff --git a/ArchiSteamFarm/Core/NativeMethods.cs b/ArchiSteamFarm/Core/NativeMethods.cs
index b98ce16df..6f2a41ecc 100644
--- a/ArchiSteamFarm/Core/NativeMethods.cs
+++ b/ArchiSteamFarm/Core/NativeMethods.cs
@@ -111,10 +111,10 @@ internal static partial class NativeMethods {
[return: MarshalAs(UnmanagedType.Bool)]
#if NETFRAMEWORK
[DllImport("user32.dll")]
- internal static extern bool ShowWindow(nint hWnd, int nCmdShow);
+ internal static extern void ShowWindow(nint hWnd, int nCmdShow);
#else
[LibraryImport("user32.dll")]
- internal static partial bool ShowWindow(nint hWnd, int nCmdShow);
+ internal static partial void ShowWindow(nint hWnd, int nCmdShow);
#endif
[Flags]
diff --git a/ArchiSteamFarm/IPC/Controllers/Api/IPCController.cs b/ArchiSteamFarm/IPC/Controllers/Api/IPCBansController.cs
similarity index 84%
rename from ArchiSteamFarm/IPC/Controllers/Api/IPCController.cs
rename to ArchiSteamFarm/IPC/Controllers/Api/IPCBansController.cs
index bb3460705..436af95f3 100644
--- a/ArchiSteamFarm/IPC/Controllers/Api/IPCController.cs
+++ b/ArchiSteamFarm/IPC/Controllers/Api/IPCBansController.cs
@@ -31,14 +31,14 @@ using Microsoft.AspNetCore.Mvc;
namespace ArchiSteamFarm.IPC.Controllers.Api;
-[Route("Api/IPC")]
-public sealed class IPCController : ArchiController {
+[Route("Api/IPC/Bans")]
+public sealed class IPCBansController : ArchiController {
///
/// Clears the list of all IP addresses currently blocked by ASFs IPC module
///
- [HttpDelete("Bans")]
+ [HttpDelete]
[ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.OK)]
- public ActionResult BansDelete() {
+ public ActionResult Delete() {
ApiAuthenticationMiddleware.ClearFailedAuthorizations();
return Ok(new GenericResponse(true));
@@ -47,10 +47,10 @@ public sealed class IPCController : ArchiController {
///
/// Removes an IP address from the list of addresses currently blocked by ASFs IPC module
///
- [HttpDelete("Bans/{ipAddress:required}")]
+ [HttpDelete("{ipAddress:required}")]
[ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.OK)]
[ProducesResponseType(typeof(GenericResponse), (int) HttpStatusCode.BadRequest)]
- public ActionResult BansDeleteSpecific(string ipAddress) {
+ public ActionResult DeleteSpecific(string ipAddress) {
if (string.IsNullOrEmpty(ipAddress)) {
throw new ArgumentNullException(nameof(ipAddress));
}
@@ -71,7 +71,7 @@ public sealed class IPCController : ArchiController {
///
/// Gets all IP addresses currently blocked by ASFs IPC module
///
- [HttpGet("Bans")]
+ [HttpGet]
[ProducesResponseType(typeof(GenericResponse>), (int) HttpStatusCode.OK)]
- public ActionResult>> BansGet() => Ok(new GenericResponse>(ApiAuthenticationMiddleware.GetCurrentlyBannedIPs().Select(static ip => ip.ToString()).ToHashSet()));
+ public ActionResult>> Get() => Ok(new GenericResponse>(ApiAuthenticationMiddleware.GetCurrentlyBannedIPs().Select(static ip => ip.ToString()).ToHashSet()));
}