Allow swagger on Production
All checks were successful
Lint / Run linters (push) Successful in 39s
Build and deploy / Publish image (push) Successful in 1m45s
Build and deploy / Deploy image (push) Successful in 10s

This commit is contained in:
2024-06-21 12:26:46 +03:00
parent 8d56a658f6
commit 46295b1884

View File

@ -62,11 +62,12 @@ if (app.Environment.IsDevelopment())
{ {
var logger = app.Services.GetRequiredService<ILogger<Program>>(); var logger = app.Services.GetRequiredService<ILogger<Program>>();
logger.LogWarning("!!!!!!! Call /ensure-created enpoint or /migrate if no db !!!!!!!!"); logger.LogWarning("!!!!!!! Call /ensure-created enpoint or /migrate if no db !!!!!!!!");
app.UseSwagger();
app.UseSwaggerUI();
app.AddDbHelpersEndpoints(); app.AddDbHelpersEndpoints();
} }
app.UseSwagger();
app.UseSwaggerUI();
//Configure the HTTP request pipeline. //Configure the HTTP request pipeline.
app.UseExceptionHandler(); app.UseExceptionHandler();