From 1f6962768de80cb2a017d53a1985899063d062dd Mon Sep 17 00:00:00 2001 From: transtrike Date: Sat, 19 Dec 2020 16:19:29 +0200 Subject: Moved migrations to DevHive.Data --- src/DevHive.Web/Startup.cs | 12 ++++++++++++ src/DevHive.Web/appsettings.json | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'src/DevHive.Web') diff --git a/src/DevHive.Web/Startup.cs b/src/DevHive.Web/Startup.cs index 12f72f7..333735a 100644 --- a/src/DevHive.Web/Startup.cs +++ b/src/DevHive.Web/Startup.cs @@ -7,6 +7,8 @@ using Microsoft.Extensions.Hosting; using DevHive.Web.Configurations.Extensions; using AutoMapper; using Newtonsoft.Json; +using DevHive.Data.Repositories; +using DevHive.Services.Services; namespace DevHive.Web { @@ -32,6 +34,16 @@ namespace DevHive.Web services.SwaggerConfiguration(); services.JWTConfiguration(Configuration); services.AutoMapperConfiguration(); + + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); + services.AddTransient(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. diff --git a/src/DevHive.Web/appsettings.json b/src/DevHive.Web/appsettings.json index d620c14..a460532 100644 --- a/src/DevHive.Web/appsettings.json +++ b/src/DevHive.Web/appsettings.json @@ -2,9 +2,9 @@ "AppSettings": { "Secret": "gXfQlU6qpDleFWyimscjYcT3tgFsQg3yoFjcvSLxG56n1Vu2yptdIUq254wlJWjm" }, - "ConnectionStrings" : { - "DEV": "Server=localhost;Port=5432;Database=API;User Id=postgres;Password=;" - }, + "ConnectionStrings": { + "DEV": "Server=localhost;Port=5432;Database=API;User Id=postgres;Password=;" + }, "Logging" : { "LogLevel" : { "Default" : "Information", -- cgit v1.2.3