Revize c349bab3
Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)
Backend/Core/Services/Registration.cs | ||
---|---|---|
1 |
using Microsoft.AspNetCore.Builder; |
|
1 |
using Core.Authentication; |
|
2 |
using Microsoft.AspNetCore.Builder; |
|
2 | 3 |
using Microsoft.Extensions.DependencyInjection; |
3 |
using System; |
|
4 |
using System.Collections.Generic; |
|
5 |
using System.Linq; |
|
6 |
using System.Text; |
|
7 |
using System.Threading.Tasks; |
|
8 | 4 |
|
9 | 5 |
namespace Core.Services |
10 | 6 |
{ |
... | ... | |
13 | 9 |
public static void RegisterServices(WebApplicationBuilder builder) |
14 | 10 |
{ |
15 | 11 |
builder.Services.AddScoped<IUserService, UserServiceEF>(); |
12 |
builder.Services.AddScoped<IAuthService, AuthService>(); |
|
13 |
|
|
14 |
builder.Services.AddScoped<IJwtUtils, JwtUtils>(); |
|
16 | 15 |
} |
17 | 16 |
} |
18 |
} |
|
17 |
} |
Také k dispozici: Unified diff
Backend - JWT Authentication done