This commit is contained in:
Илья Федотов 2024-08-16 11:47:15 +04:00
parent ae307673fb
commit d895642e48

View File

@ -64,7 +64,7 @@ builder.Services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo
{
Title = "JurasicZooRestApi",
Title = "ElectronicsShopRestApi",
Version = "v1"
});
});
@ -88,7 +88,7 @@ mailSender?.MailConfig(new MailConfigBindingModel
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "JurasicZooRestApi v1"));
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "ElectronicsShopRestApi v1"));
}
app.UseHttpsRedirection();