Added authentication and authorization, updated dependency injections, removed hard-coded connection string
This commit is contained in:
		| @@ -1,4 +1,6 @@ | ||||
| using ApplicationLayer.VisaApplications.Handlers; | ||||
| using ApplicationLayer.AuthServices.LoginService; | ||||
| using ApplicationLayer.AuthServices.RegisterService; | ||||
| using ApplicationLayer.DataAccessingServices.VisaApplications.Handlers; | ||||
| using Microsoft.Extensions.DependencyInjection; | ||||
|  | ||||
| namespace ApplicationLayer; | ||||
| @@ -11,6 +13,9 @@ public static class DependencyInjection | ||||
|     { | ||||
|         services.AddScoped<IVisaApplicationsRequestHandler, VisaApplicationRequestsHandler>(); | ||||
|  | ||||
|         services.AddScoped<IRegisterService, RegisterService>(); | ||||
|         services.AddScoped<ILoginService, LoginService>(); | ||||
|  | ||||
|         return services; | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user