diff --git a/server/RdtClient.Web/Controllers/QBittorrentController.cs b/server/RdtClient.Web/Controllers/QBittorrentController.cs index 3ca48e2..7d8c315 100644 --- a/server/RdtClient.Web/Controllers/QBittorrentController.cs +++ b/server/RdtClient.Web/Controllers/QBittorrentController.cs @@ -15,6 +15,16 @@ namespace RdtClient.Web.Controllers; [Route("api/v2")] public class QBittorrentController(ILogger logger, QBittorrent qBittorrent) : Controller { + [AllowAnonymous] + [Route("/version/api")] + [HttpGet] + [HttpPost] + public ActionResult LegacyVersionApi() + { + // Returning 20 nudges older qB clients to use /api/v2 endpoints. + return Content("20", "text/plain"); + } + [AllowAnonymous] [Route("auth/login")] [HttpGet]