diff --git a/Bank/BankRestApi/Controllers/TransferController.cs b/Bank/BankRestApi/Controllers/TransferController.cs index 6461c7e..5a677d2 100644 --- a/Bank/BankRestApi/Controllers/TransferController.cs +++ b/Bank/BankRestApi/Controllers/TransferController.cs @@ -6,6 +6,8 @@ using Microsoft.AspNetCore.Mvc; namespace BankRestApi.Controllers { + [Route("api/[controller]/[action]")] + [ApiController] public class TransferController : Controller { private readonly ILogger _logger; diff --git a/Bank/BankRestApi/Controllers/WithdrawalController.cs b/Bank/BankRestApi/Controllers/WithdrawalController.cs index 5716525..0660b8a 100644 --- a/Bank/BankRestApi/Controllers/WithdrawalController.cs +++ b/Bank/BankRestApi/Controllers/WithdrawalController.cs @@ -6,6 +6,8 @@ using Microsoft.AspNetCore.Mvc; namespace BankRestApi.Controllers { + [Route("api/[controller]/[action]")] + [ApiController] public class WithdrawalController : Controller { private readonly ILogger _logger;