feat: Добавил генерацию api документации для git
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 10s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 28s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 14s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 9s

This commit is contained in:
2026-05-13 17:06:51 +03:00
parent 98ad8ae74f
commit 5874dcdfd4
4 changed files with 5607 additions and 5 deletions
+13 -5
View File
@@ -18,6 +18,8 @@ using UniVerse.Infrastructure.Notifications;
var builder = WebApplication.CreateBuilder(args);
var useAspire = builder.Configuration.GetValue<bool>("Aspire:Enabled");
var isOpenApiGeneration = AppDomain.CurrentDomain.GetAssemblies()
.Any(assembly => assembly.GetName().Name == "GetDocument.Insider");
if (useAspire)
{
@@ -98,10 +100,13 @@ builder.Services.AddTransient<NotificationJob>();
builder.Services.Configure<EmailNotificationOptions>(builder.Configuration.GetSection("Email:Smtp"));
builder.Services.AddQuartz();
builder.Services.AddQuartzHostedService(options =>
if (!isOpenApiGeneration)
{
options.WaitForJobsToComplete = true;
});
builder.Services.AddQuartzHostedService(options =>
{
options.WaitForJobsToComplete = true;
});
}
// --- HTTP Clients ---
builder.Services.AddHttpClient<ILlmClient, LlmClient>(client =>
@@ -117,8 +122,11 @@ builder.Services.AddHttpClient<IModeusApiClient, ModeusApiClient>(client =>
});
// --- Background Services ---
builder.Services.AddHostedService<LlmProcessingBackgroundService>();
builder.Services.AddHostedService<AchievementCatalogHostedService>();
if (!isOpenApiGeneration)
{
builder.Services.AddHostedService<LlmProcessingBackgroundService>();
builder.Services.AddHostedService<AchievementCatalogHostedService>();
}
// --- Controllers ---
builder.Services.AddControllers()