forked from MDCPS/DamageAssessment_Backend
Fix for Data seed issue,Url Correction for SurveyResponses
This commit is contained in:
@ -32,11 +32,20 @@ var app = builder.Build();
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
using (var serviceScope = app.Services.CreateScope())
|
||||
{
|
||||
var services = serviceScope.ServiceProvider;
|
||||
var surveyProvider = services.GetRequiredService<IEmployeesProvider>();
|
||||
surveyProvider.SeedData();
|
||||
}
|
||||
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI(options =>
|
||||
{
|
||||
//switch for local environment
|
||||
//options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
||||
options.SwaggerEndpoint("/employees/swagger/v1/swagger.json", "");
|
||||
// options.RoutePrefix = ""; // Serve Swagger UI at the root URL
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user