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())
|
using (var serviceScope = app.Services.CreateScope())
|
||||||
{
|
{
|
||||||
var services = serviceScope.ServiceProvider;
|
var services = serviceScope.ServiceProvider;
|
||||||
var surveyProvider = services.GetRequiredService<IAnswersProvider>();
|
var answerProvider = services.GetRequiredService<IAnswersProvider>();
|
||||||
surveyProvider.SeedData();
|
answerProvider.SeedData();
|
||||||
}
|
}
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI(
|
app.UseSwaggerUI(
|
||||||
options =>
|
options =>
|
||||||
{
|
{
|
||||||
//switch for local environment
|
//switch for local environment
|
||||||
//options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
||||||
options.SwaggerEndpoint("/answers/swagger/v1/swagger.json","" );
|
//options.SwaggerEndpoint("/answers/swagger/v1/swagger.json","" );
|
||||||
|
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
@ -44,8 +44,8 @@ if (app.Environment.IsDevelopment())
|
|||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI(options => {
|
app.UseSwaggerUI(options => {
|
||||||
//switch for local environment
|
//switch for local environment
|
||||||
// options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
||||||
options.SwaggerEndpoint("/attachments/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())
|
using (var serviceScope = app.Services.CreateScope())
|
||||||
{
|
{
|
||||||
var services = serviceScope.ServiceProvider;
|
var services = serviceScope.ServiceProvider;
|
||||||
var surveyProvider = services.GetRequiredService<IEmployeesProvider>();
|
var employeeProvider = services.GetRequiredService<IEmployeesProvider>();
|
||||||
surveyProvider.SeedData();
|
employeeProvider.SeedData();
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI(options =>
|
app.UseSwaggerUI(options =>
|
||||||
{
|
{
|
||||||
//switch for local environment
|
//switch for local environment
|
||||||
//options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
||||||
options.SwaggerEndpoint("/employees/swagger/v1/swagger.json", "");
|
// options.SwaggerEndpoint("/employees/swagger/v1/swagger.json", "");
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -45,8 +45,8 @@ if (app.Environment.IsDevelopment())
|
|||||||
app.UseSwaggerUI(options =>
|
app.UseSwaggerUI(options =>
|
||||||
{
|
{
|
||||||
//switch for local environment
|
//switch for local environment
|
||||||
//options.SwaggerEndpoint("/swagger/v1/swagger.json","");
|
options.SwaggerEndpoint("/swagger/v1/swagger.json","");
|
||||||
options.SwaggerEndpoint("locations/swagger/v1/swagger.json", "");
|
//options.SwaggerEndpoint("locations/swagger/v1/swagger.json", "");
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -46,7 +46,7 @@ if (app.Environment.IsDevelopment())
|
|||||||
app.UseSwaggerUI(options => {
|
app.UseSwaggerUI(options => {
|
||||||
//switch for local environment
|
//switch for local environment
|
||||||
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
||||||
// options.SwaggerEndpoint("/questions/swagger/v1/swagger.json", "");
|
// options.SwaggerEndpoint("/questions/swagger/v1/swagger.json", "");
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ if (app.Environment.IsDevelopment())
|
|||||||
app.UseSwaggerUI(options => {
|
app.UseSwaggerUI(options => {
|
||||||
//switch for local environment
|
//switch for local environment
|
||||||
options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
|
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