Вернул openAPI
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 38s

This commit is contained in:
2025-09-06 19:52:55 +03:00
parent ae7c55cce3
commit db4de9e99e

View File

@@ -45,6 +45,9 @@ if (string.IsNullOrEmpty(preinstsalledJwtToken))
var app = builder.Build();
app.UseForwardedHeaders();
app.MapOpenApi();
var logger = app.Services.GetRequiredService<ILogger<Program>>();
if (string.IsNullOrEmpty(preinstsalledJwtToken))
@@ -63,7 +66,7 @@ if (string.IsNullOrEmpty(preinstsalledJwtToken))
if (expirationDate.AddHours(23) > DateTime.Now)
{
var token = lines[0];
logger.LogInformation("Используем существующий токен: {Token}", token);
logger.LogInformation("Используем существующий токен");
configuration["TOKEN"] = token;
}
else