Skip to content
This repository was archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
feat(back-end): use Swagger only in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed May 22, 2021
1 parent 42e44c7 commit 2abe8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kaizen/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseSwaggerApiDocumentation();
}
else
{
Expand All @@ -82,7 +83,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
}

app.UseRouting();
app.UseSwaggerApiDocumentation();
app.UseAuthentication();
app.UseAuthorization();
app.UseHttpContext();
Expand Down

0 comments on commit 2abe8f0

Please sign in to comment.