Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Apiresources.WebApi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
app.UseHsts();
}

dbContext.Database.EnsureCreated();

// Add this line; you'll need `using Serilog;` up the top, too
// Add this line; you'll need `using Serilog;` up the top, too
app.UseSerilogRequestLogging();
loggerFactory.AddSerilog();

dbContext.Database.EnsureCreated();

app.UseHttpsRedirection();
app.UseRouting();
//Enable CORS
Expand All @@ -77,4 +78,4 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
});
}
}
}
}