1 |
c349bab3
|
Lukáš Vlček
|
using Core.Authentication;
|
2 |
eff8ec56
|
Vojtěch Bartička
|
using Core.Services.AnnotationService;
|
3 |
24e1c89d
|
Vojtěch Bartička
|
using Core.Services.DocumentService;
|
4 |
c349bab3
|
Lukáš Vlček
|
using Microsoft.AspNetCore.Builder;
|
5 |
897851f8
|
Vojtěch Bartička
|
using Microsoft.Extensions.DependencyInjection;
|
6 |
|
|
|
7 |
|
|
namespace Core.Services
|
8 |
|
|
{
|
9 |
|
|
public class Registration
|
10 |
|
|
{
|
11 |
|
|
public static void RegisterServices(WebApplicationBuilder builder)
|
12 |
|
|
{
|
13 |
|
|
builder.Services.AddScoped<IUserService, UserServiceEF>();
|
14 |
24e1c89d
|
Vojtěch Bartička
|
builder.Services.AddScoped<IDocumentService, DocumentServiceEF>();
|
15 |
c349bab3
|
Lukáš Vlček
|
builder.Services.AddScoped<IAuthService, AuthService>();
|
16 |
eff8ec56
|
Vojtěch Bartička
|
builder.Services.AddScoped<IAnnotationService, AnnotationServiceEF>();
|
17 |
c349bab3
|
Lukáš Vlček
|
|
18 |
|
|
builder.Services.AddScoped<IJwtUtils, JwtUtils>();
|
19 |
897851f8
|
Vojtěch Bartička
|
}
|
20 |
|
|
}
|
21 |
c349bab3
|
Lukáš Vlček
|
}
|