Skip to content

Commit

Permalink
Alterando configuração do swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
Oziel Guimarães de Paula Silva committed Nov 27, 2023
1 parent bea0dd0 commit fce771e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EscolaBiblicaDominical/Ebd.Presentation.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "Ebd.Presentation.Api", Version = "v1" });

});
}

Expand All @@ -47,7 +48,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "Ebd.Presentation.Api v1");
c.SwaggerEndpoint($"{Configuration["AppPath"]}/swagger/v1/swagger.json", "Ebd.Presentation.Api v1");
c.RoutePrefix = string.Empty;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"RetryCount": 3
}
},
"AppPath": "/ebd",
"Logging": {
"LogLevel": {
"Default": "Information",
Expand Down

0 comments on commit fce771e

Please sign in to comment.