Code cleanup variable names

This commit is contained in:
Santhosh S 2023-09-04 15:50:26 -04:00
parent a52f6e0cf9
commit cc4b58d072
6 changed files with 14 additions and 14 deletions

View File

@ -38,16 +38,16 @@ if (app.Environment.IsDevelopment())
using (var serviceScope = app.Services.CreateScope())
{
var services = serviceScope.ServiceProvider;
var surveyProvider = services.GetRequiredService<IAnswersProvider>();
surveyProvider.SeedData();
var answerProvider = services.GetRequiredService<IAnswersProvider>();
answerProvider.SeedData();
}
app.UseSwagger();
app.UseSwaggerUI(
options =>
{
//switch for local environment
//options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/answers/swagger/v1/swagger.json","" );
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
//options.SwaggerEndpoint("/answers/swagger/v1/swagger.json","" );
} );
}

View File

@ -44,8 +44,8 @@ if (app.Environment.IsDevelopment())
app.UseSwagger();
app.UseSwaggerUI(options => {
//switch for local environment
// options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/attachments/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
// options.SwaggerEndpoint("/attachments/swagger/v1/swagger.json", "");
});

View File

@ -35,16 +35,16 @@ if (app.Environment.IsDevelopment())
using (var serviceScope = app.Services.CreateScope())
{
var services = serviceScope.ServiceProvider;
var surveyProvider = services.GetRequiredService<IEmployeesProvider>();
surveyProvider.SeedData();
var employeeProvider = services.GetRequiredService<IEmployeesProvider>();
employeeProvider.SeedData();
}
app.UseSwagger();
app.UseSwaggerUI(options =>
{
//switch for local environment
//options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/employees/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
// options.SwaggerEndpoint("/employees/swagger/v1/swagger.json", "");
});
}

View File

@ -45,8 +45,8 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI(options =>
{
//switch for local environment
//options.SwaggerEndpoint("/swagger/v1/swagger.json","");
options.SwaggerEndpoint("locations/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/swagger/v1/swagger.json","");
//options.SwaggerEndpoint("locations/swagger/v1/swagger.json", "");
});