This commit is contained in:
Халимов Рустам
2026-03-30 23:57:34 +03:00
parent d3f1e3f361
commit f1f8f6e012
27 changed files with 88 additions and 142 deletions
@@ -1,4 +1,3 @@
using Carter;
using Knot.Shared.Kernel;
using Knot.Modules.Profiles.Application.Profiles.Avatar;
using Knot.Modules.Profiles.Application.Profiles.GetProfile;
@@ -13,9 +12,9 @@ using Microsoft.AspNetCore.Mvc;
namespace Knot.Modules.Profiles.Presentation.Endpoints;
public sealed class ProfilesEndpoints : ICarterModule
public static class ProfilesEndpoints
{
public void AddRoutes(IEndpointRouteBuilder app)
public static void MapProfilesEndpoints(this WebApplication app)
{
var group = app.MapGroup("api/profiles").RequireAuthorization();