mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-22 20:24:55 +00:00
new app server and database + added hub and controller of user profile
This commit is contained in:
@@ -97,6 +97,8 @@ public static class ConfigurationProgramExtensions
|
||||
services.AddScoped<ISessionKeyAttacher, SessionKeyAttacher>();
|
||||
services.AddScoped<ISessionKeysReader, SessionKeysReader>();
|
||||
services.AddScoped<IOneTimePreKeysRotator, OneTimePreKeysRotator>();
|
||||
|
||||
services.AddScoped<IProfileService, ProfileService>();
|
||||
}
|
||||
|
||||
public static void AddRepositories(this IServiceCollection services)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using AutoMapper;
|
||||
using Govor.API.Extensions.Mapping;
|
||||
using Govor.Application.Profiles;
|
||||
using Govor.Contracts.DTOs;
|
||||
using Govor.Contracts.Responses;
|
||||
using Govor.Core.Models;
|
||||
@@ -23,5 +24,7 @@ public class MappingProfile : Profile
|
||||
CreateMap<Friendship, FriendshipDto>();
|
||||
|
||||
CreateMap<UserSession, SessionDto>();
|
||||
|
||||
CreateMap<UserProfile, UserProfileDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user