Allow swagger on Production
This commit is contained in:
@ -62,11 +62,12 @@ if (app.Environment.IsDevelopment())
|
||||
{
|
||||
var logger = app.Services.GetRequiredService<ILogger<Program>>();
|
||||
logger.LogWarning("!!!!!!! Call /ensure-created enpoint or /migrate if no db !!!!!!!!");
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
app.AddDbHelpersEndpoints();
|
||||
}
|
||||
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
|
||||
//Configure the HTTP request pipeline.
|
||||
app.UseExceptionHandler();
|
||||
|
||||
|
Reference in New Issue
Block a user