Added authentication services to program
This commit is contained in:
parent
bce57e4cf0
commit
9fb3e52079
@ -1,3 +1,5 @@
|
||||
using API.Authentication;
|
||||
using API.Authentication.Interfaces;
|
||||
using API.Services;
|
||||
using DAL.Contexts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
@ -35,6 +37,9 @@ namespace API
|
||||
builder.Services.AddTransient<SavedEventService>();
|
||||
builder.Services.AddTransient<UserService>();
|
||||
|
||||
builder.Services.AddTransient<IYesAuthentication, YesAuthentication>();
|
||||
builder.Services.AddTransient<IColorAuthentication, ColorAuthentication>();
|
||||
|
||||
WebApplication app = builder.Build();
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
|
Loading…
x
Reference in New Issue
Block a user