Апи
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Carter" Version="10.0.0" />
|
||||
<PackageReference Include="MediatR" Version="12.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.4" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.4" />
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using Carter;
|
||||
using Knot.Contracts.Relations.Domain;
|
||||
using Knot.Modules.Relations.Application.Contacts;
|
||||
using Knot.Shared.Infrastructure;
|
||||
@@ -12,9 +11,9 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Knot.Modules.Relations.Presentation.Endpoints;
|
||||
|
||||
public sealed class ContactsEndpoints : ICarterModule
|
||||
public static class ContactsEndpoints
|
||||
{
|
||||
public void AddRoutes(IEndpointRouteBuilder app)
|
||||
public static void MapContactsEndpoints(this WebApplication app)
|
||||
{
|
||||
var group = app.MapGroup("api/contacts").RequireAuthorization();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user