new app server and database + added hub and controller of user profile

This commit is contained in:
Artemy
2025-11-04 11:41:06 +07:00
parent 1d442d037c
commit a5a5fc4758
62 changed files with 1760 additions and 2543 deletions
+2 -1
View File
@@ -19,7 +19,7 @@ builder.Services.AddCors(options =>
{
options.AddPolicy("AllowFrontend", policy =>
{
policy.WithOrigins("http://localhost:5000", "https://5.129.212.144:5000")
policy.WithOrigins("https://localhost:7155", "http://localhost:7155")
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
@@ -126,6 +126,7 @@ app.MapControllers();
app.MapHub<ChatsHub>("/hubs/chats");
app.MapHub<FriendsHub>("/hubs/friends");
app.MapHub<ProfileHub>("/hubs/profiles");
app.MapSwagger().RequireAuthorization();