diff --git a/DamageAssesmentApi/DamageAssesment.Api.Answers/Program.cs b/DamageAssesmentApi/DamageAssesment.Api.Answers/Program.cs index 8659252..6caeb7a 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Answers/Program.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Answers/Program.cs @@ -38,16 +38,16 @@ if (app.Environment.IsDevelopment()) using (var serviceScope = app.Services.CreateScope()) { var services = serviceScope.ServiceProvider; - var surveyProvider = services.GetRequiredService(); - surveyProvider.SeedData(); + var answerProvider = services.GetRequiredService(); + 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","" ); } ); } diff --git a/DamageAssesmentApi/DamageAssesment.Api.Attachments/Program.cs b/DamageAssesmentApi/DamageAssesment.Api.Attachments/Program.cs index 7cb5da3..4584daf 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Attachments/Program.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Attachments/Program.cs @@ -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", ""); }); diff --git a/DamageAssesmentApi/DamageAssesment.Api.Employees/Program.cs b/DamageAssesmentApi/DamageAssesment.Api.Employees/Program.cs index c0c301a..e2d39bd 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Employees/Program.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Employees/Program.cs @@ -35,16 +35,16 @@ if (app.Environment.IsDevelopment()) using (var serviceScope = app.Services.CreateScope()) { var services = serviceScope.ServiceProvider; - var surveyProvider = services.GetRequiredService(); - surveyProvider.SeedData(); + var employeeProvider = services.GetRequiredService(); + 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", ""); }); } diff --git a/DamageAssesmentApi/DamageAssesment.Api.Locations/Program.cs b/DamageAssesmentApi/DamageAssesment.Api.Locations/Program.cs index 46ea009..3b60547 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Locations/Program.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Locations/Program.cs @@ -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", ""); }); diff --git a/DamageAssesmentApi/DamageAssesment.Api.Questions/Program.cs b/DamageAssesmentApi/DamageAssesment.Api.Questions/Program.cs index 32465f2..0413935 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Questions/Program.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Questions/Program.cs @@ -46,7 +46,7 @@ if (app.Environment.IsDevelopment()) app.UseSwaggerUI(options => { //switch for local environment options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); - // options.SwaggerEndpoint("/questions/swagger/v1/swagger.json", ""); + // options.SwaggerEndpoint("/questions/swagger/v1/swagger.json", ""); }); } diff --git a/DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs b/DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs index 7b6dbdd..0c31777 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Surveys/Program.cs @@ -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", ""); }); }