Модуль заказов

This commit is contained in:
Халимов Рустам
2026-02-10 22:32:28 +03:00
parent 12c86f9937
commit 3b2c0029a1
33 changed files with 1370 additions and 33 deletions
+6
View File
@@ -8,6 +8,8 @@ using Nashel.Modules.Geo.Infrastructure;
using Nashel.Modules.Geo.Presentation;
using Nashel.Modules.Identity.Infrastructure;
using Nashel.Modules.Identity.Presentation.Endpoints;
using Nashel.Modules.Order.Infrastructure;
using Nashel.Modules.Order.Presentation;
var builder = WebApplication.CreateBuilder(args);
@@ -58,6 +60,9 @@ builder.Services.AddCatalogModule(builder.Configuration);
// Регистрация модуля Geo
builder.Services.AddGeoModule(builder.Configuration);
// Регистрация модуля Order
builder.Services.AddOrderModule(builder.Configuration);
// Настройка аутентификации
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
@@ -96,5 +101,6 @@ app.UseAuthorization();
app.MapIdentityEndpoints();
app.MapCatalogEndpoints();
app.MapGeoEndpoints();
app.MapOrderEndpoints();
app.Run();