aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-19 16:19:29 +0200
committertranstrike <transtrike@gmail.com>2020-12-19 16:19:29 +0200
commit1f6962768de80cb2a017d53a1985899063d062dd (patch)
treeca96d9cc927b6e6134ac1c84408a310485e9bd95 /src/DevHive.Web
parentfa09c0cc6cf99034dcc1301692ccb4d019087213 (diff)
downloadDevHive-1f6962768de80cb2a017d53a1985899063d062dd.tar
DevHive-1f6962768de80cb2a017d53a1985899063d062dd.tar.gz
DevHive-1f6962768de80cb2a017d53a1985899063d062dd.zip
Moved migrations to DevHive.Data
Diffstat (limited to 'src/DevHive.Web')
-rw-r--r--src/DevHive.Web/Startup.cs12
-rw-r--r--src/DevHive.Web/appsettings.json6
2 files changed, 15 insertions, 3 deletions
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<LanguageRepository>();
+ services.AddTransient<RoleRepository>();
+ services.AddTransient<TechnologyRepository>();
+ services.AddTransient<UserRepository>();
+
+ services.AddTransient<LanguageService>();
+ services.AddTransient<RoleService>();
+ services.AddTransient<TechnologyService>();
+ services.AddTransient<UserService>();
}
// 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",