diff --git a/Data/ThuisDbContext.cs b/Data/ThuisDbContext.cs index 89f1749..95a0c05 100644 --- a/Data/ThuisDbContext.cs +++ b/Data/ThuisDbContext.cs @@ -28,5 +28,24 @@ public class ThuisDbContext : DbContext FreezerId = 2, Name = "Berging" }); + + modelBuilder.Entity().HasData( + new FreezerItem + { + FreezerItemId = 1, + FreezerId = 1, + Item = "Kip", + Amount = 1, + Drawer = 1 + + }, + new FreezerItem + { + FreezerItemId = 2, + FreezerId = 2, + Item = "1 pak van 2 hamburgers", + Amount = 1, + Drawer = 2 + }); } } \ No newline at end of file diff --git a/Program.cs b/Program.cs index e824d4b..3b40591 100644 --- a/Program.cs +++ b/Program.cs @@ -27,7 +27,7 @@ if (app.Environment.IsDevelopment()) app.UseSwaggerUI(); } -// app.UseHttpsRedirection(); +app.UseHttpsRedirection(); app.UseAuthorization(); diff --git a/ThuisApi.csproj b/ThuisApi.csproj index 325b36d..29d18f0 100644 --- a/ThuisApi.csproj +++ b/ThuisApi.csproj @@ -1,27 +1,27 @@ - net6.0 + net7.0 enable enable - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/test.pfx b/test.pfx deleted file mode 100644 index b93a779..0000000 Binary files a/test.pfx and /dev/null differ