Update Program.cs (#254)
parent
8f54135db4
commit
766a623d23
|
@ -10,11 +10,11 @@ builder.Services.AddAuthentication("Bearer").AddJwtBearer();
|
|||
|
||||
var app = builder.Build();
|
||||
|
||||
//if (app.Environment.IsDevelopment())
|
||||
//{
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
//}
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
|
|
Loading…
Reference in New Issue