Added authentication services to program

This commit is contained in:
quentin 2024-05-20 10:46:31 -05:00
parent bce57e4cf0
commit 9fb3e52079

View File

@ -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())