Dockerise Sprint 2 Code with bug fix

This commit is contained in:
Santhosh S
2023-08-28 01:03:24 -04:00
parent 96ccb96bf1
commit 82cfa5706a
38 changed files with 690 additions and 96 deletions

View File

@ -33,7 +33,11 @@ var app = builder.Build();
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
app.UseSwaggerUI(options =>
{
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
// options.RoutePrefix = ""; // Serve Swagger UI at the root URL
});
}
app.UseAuthorization();