Реализация и тесты Geo модуля
This commit is contained in:
@@ -4,6 +4,8 @@ using Microsoft.IdentityModel.Tokens;
|
||||
using Microsoft.OpenApi.Models;
|
||||
using Nashel.Modules.Catalog.Infrastructure;
|
||||
using Nashel.Modules.Catalog.Presentation.Endpoints;
|
||||
using Nashel.Modules.Geo.Infrastructure;
|
||||
using Nashel.Modules.Geo.Presentation;
|
||||
using Nashel.Modules.Identity.Infrastructure;
|
||||
using Nashel.Modules.Identity.Presentation.Endpoints;
|
||||
|
||||
@@ -53,6 +55,9 @@ builder.Services.AddIdentityModule(builder.Configuration);
|
||||
// Регистрация модуля Catalog
|
||||
builder.Services.AddCatalogModule(builder.Configuration);
|
||||
|
||||
// Регистрация модуля Geo
|
||||
builder.Services.AddGeoModule(builder.Configuration);
|
||||
|
||||
// Настройка аутентификации
|
||||
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
|
||||
.AddJwtBearer(options =>
|
||||
@@ -90,5 +95,6 @@ app.UseAuthorization();
|
||||
// Маппинг эндпоинтов
|
||||
app.MapIdentityEndpoints();
|
||||
app.MapCatalogEndpoints();
|
||||
app.MapGeoEndpoints();
|
||||
|
||||
app.Run();
|
||||
|
||||
Reference in New Issue
Block a user