refactor: move REST API controllers into Controllers/Api subfolder

- Prepares Controllers/ for both Api/ and Admin/ groupings
- Namespaces updated accordingly

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Anatolii Grynchuk
2026-05-02 01:58:14 +03:00
parent ab44ad117c
commit cec8f42ece
7 changed files with 7 additions and 7 deletions
@@ -3,7 +3,7 @@ using HrynCo.NotificationService.Services.Core;
using MediatR;
using Microsoft.AspNetCore.Mvc;
namespace HrynCo.NotificationService.Web.Controllers;
namespace HrynCo.NotificationService.Web.Controllers.Api;
[Route("api/v1/[controller]")]
[ApiController]
@@ -1,6 +1,6 @@
using HrynCo.NotificationService.DAL.Abstract.Providers;
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
namespace HrynCo.NotificationService.Web.Controllers.Api.EmailChannels;
public sealed record CreateEmailChannelRequest(
string ServiceName,
@@ -7,7 +7,7 @@ using HrynCo.NotificationService.Services.EmailChannels.Update;
using MediatR;
using Microsoft.AspNetCore.Mvc;
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
namespace HrynCo.NotificationService.Web.Controllers.Api.EmailChannels;
[Route("api/v1/email-channels")]
public sealed class EmailChannelsController : ApiControllerBase
@@ -1,6 +1,6 @@
using HrynCo.NotificationService.DAL.Abstract.Providers;
namespace HrynCo.NotificationService.Web.Controllers.EmailChannels;
namespace HrynCo.NotificationService.Web.Controllers.Api.EmailChannels;
public sealed record UpdateEmailChannelRequest(
int Priority,
@@ -1,6 +1,6 @@
using HrynCo.NotificationService.DAL.Abstract.Templates;
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
namespace HrynCo.NotificationService.Web.Controllers.Api.EmailTemplates;
public sealed record CreateEmailTemplateRequest(
string ServiceName,
@@ -7,7 +7,7 @@ using HrynCo.NotificationService.Services.EmailTemplates.Update;
using MediatR;
using Microsoft.AspNetCore.Mvc;
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
namespace HrynCo.NotificationService.Web.Controllers.Api.EmailTemplates;
[Route("api/v1/email-templates")]
public sealed class EmailTemplatesController : ApiControllerBase
@@ -1,6 +1,6 @@
using HrynCo.NotificationService.DAL.Abstract.Templates;
namespace HrynCo.NotificationService.Web.Controllers.EmailTemplates;
namespace HrynCo.NotificationService.Web.Controllers.Api.EmailTemplates;
public sealed record UpdateEmailTemplateRequest(
string Subject,