Initial commit - Auth
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Auth.Core;
|
||||
using Auth.Core.Services;
|
||||
using Auth.Core.Services.Auth;
|
||||
|
||||
using Auth.Core.Services.HR.Users;
|
||||
using Auth.Domain.Entities;
|
||||
// using ECommerce_API.Config.AuthorizeHandlers;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace Auth.API.Config;
|
||||
|
||||
public static class RegisteringServices
|
||||
{
|
||||
public static IServiceCollection RegisterServices(this IServiceCollection services)
|
||||
{
|
||||
// services.AddScoped<EmailService, EmailService>();
|
||||
services.AddScoped<TokenGenerator>();
|
||||
services.AddScoped<UserService>();
|
||||
services.AddScoped<AuthService>();
|
||||
services.AddScoped<EmailService>();
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user