Allow swagger on Production
This commit is contained in:
1 parent
8d56a658f6
commit
46295b1884
1 file changed
+3
-2
@@ -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