Change to controllerbase
MODIFY
WalletWasabi.Backend/Controllers/BatchController.cs
WalletWasabi.Backend/Controllers/BatchController.cs
@@ -19,7 +19,7 @@ namespace WalletWasabi.Backend.Controllers
/// </summary>
[Produces("application/json")]
[Route("api/v" + Constants.BackendMajorVersion + "/btc/[controller]")]
- public class BatchController : Controller
+ public class BatchController : ControllerBase
{
public BatchController(BlockchainController blockchainController, ChaumianCoinJoinController chaumianCoinJoinController, HomeController homeController, OffchainController offchainController, Global global)
{

MODIFY
WalletWasabi.Backend/Controllers/BlockchainController.cs
WalletWasabi.Backend/Controllers/BlockchainController.cs
@@ -22,7 +22,7 @@ namespace WalletWasabi.Backend.Controllers
/// </summary>
[Produces("application/json")]
[Route("api/v" + Constants.BackendMajorVersion + "/btc/[controller]")]
- public class BlockchainController : Controller
+ public class BlockchainController : ControllerBase
{
public static readonly TimeSpan FilterTimeout = TimeSpan.FromMinutes(20);

MODIFY
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
@@ -28,7 +28,7 @@ namespace WalletWasabi.Backend.Controllers
/// </summary>
[Produces("application/json")]
[Route("api/v" + Constants.BackendMajorVersion + "/btc/[controller]")]
- public class ChaumianCoinJoinController : Controller
+ public class ChaumianCoinJoinController : ControllerBase
{
public ChaumianCoinJoinController(IMemoryCache memoryCache, Global global)
{

MODIFY
WalletWasabi.Backend/Controllers/HomeController.cs
WalletWasabi.Backend/Controllers/HomeController.cs
@@ -4,7 +4,7 @@ using System;
namespace WalletWasabi.Backend.Controllers
{
[Route("")]
- public class HomeController : Controller
+ public class HomeController : ControllerBase
{
[HttpGet("")]
public IActionResult Index()

MODIFY
WalletWasabi.Backend/Controllers/OffchainController.cs
WalletWasabi.Backend/Controllers/OffchainController.cs
@@ -13,9 +13,10 @@ namespace WalletWasabi.Backend.Controllers
/// <summary>
/// To acquire offchain data.
/// </summary>
+ ///
[Produces("application/json")]
[Route("api/v" + Constants.BackendMajorVersion + "/btc/[controller]")]
- public class OffchainController : Controller
+ public class OffchainController : ControllerBase
{
public OffchainController(IMemoryCache memoryCache, IExchangeRateProvider exchangeRateProvider)
{

MODIFY
WalletWasabi.Backend/Controllers/SoftwareController.cs
WalletWasabi.Backend/Controllers/SoftwareController.cs
@@ -7,9 +7,10 @@ namespace WalletWasabi.Backend.Controllers
/// <summary>
/// To acquire administrative data about the software.
/// </summary>
+ ///
[Produces("application/json")]
[Route("api/[controller]")]
- public class SoftwareController : Controller
+ public class SoftwareController : ControllerBase
{
private readonly VersionsResponse VersionsResponse = new VersionsResponse
{

MODIFY
WalletWasabi.Backend/Controllers/WasabiController.cs
WalletWasabi.Backend/Controllers/WasabiController.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.Backend.Controllers
/// </summary>
[Produces("application/json")]
[Route("api/v" + Constants.BackendMajorVersion + "/[controller]")]
- public class WasabiController : Controller
+ public class WasabiController : ControllerBase
{
/// <summary>
/// Gets the latest legal documents.

MODIFY
WalletWasabi.Backend/Startup.cs
WalletWasabi.Backend/Startup.cs
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
+using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -17,6 +18,8 @@ using WalletWasabi.Interfaces;
using WalletWasabi.Logging;
using WalletWasabi.WebClients;
+[assembly: ApiController]
+
namespace WalletWasabi.Backend
{
public class Startup

Change to controllerbase