Code cleanup variable names
This commit is contained in:
parent
a52f6e0cf9
commit
cc4b58d072
@ -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","" );
|
||||
|
||||
} );
|
||||
}
|
||||
|
@ -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", "");
|
||||
|
||||
});
|
||||
|
||||
|
@ -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", "");
|
||||
|
||||
});
|
||||
}
|
||||
|
@ -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", "");
|
||||
|
||||
|
||||
});
|
||||
|
@ -56,7 +56,7 @@ if (app.Environment.IsDevelopment())
|
||||
app.UseSwaggerUI(options => {
|
||||
//switch for local environment
|
||||
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
||||
// options.SwaggerEndpoint("/surveys/swagger/v1/swagger.json", "");
|
||||
//options.SwaggerEndpoint("/surveys/swagger/v1/swagger.json", "");
|
||||
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user