forked from MDCPS/DamageAssessment_Backend
Dockerise Sprint 2 Code with bug fix
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user