This commit is contained in:
2020-06-08 23:59:40 +00:00
parent 937e9c5907
commit f22f2a9cda
3 changed files with 10 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ namespace rockfishCore
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddControllers().AddNewtonsoftJson();
services.AddDbContext<rockfishContext>(options =>
{
options.UseSqlite(Configuration.GetConnectionString("rfdb")).EnableSensitiveDataLogging(false);
@@ -111,9 +111,8 @@ namespace rockfishCore
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
{
endpoints.MapControllers();
});