Вернул openAPI
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 38s
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 38s
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user