From 21a377eff3f7abe1bc53990906b91ce0d0460900 Mon Sep 17 00:00:00 2001 From: Artemy <109195690+stalcker2288969@users.noreply.github.com> Date: Tue, 1 Jul 2025 21:27:04 +0700 Subject: [PATCH] UseSwagger --- Govor.API/Program.cs | 5 +++-- Govor.Console/Program.cs | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Govor.API/Program.cs b/Govor.API/Program.cs index 3eb0e4b..761a772 100644 --- a/Govor.API/Program.cs +++ b/Govor.API/Program.cs @@ -104,10 +104,11 @@ var app = builder.Build(); if (app.Environment.IsDevelopment()) { //app.MapOpenApi(); - app.UseSwagger(); - app.UseSwaggerUI(); + } +app.UseSwagger(); +app.UseSwaggerUI(); app.UseCors("AllowFrontend"); diff --git a/Govor.Console/Program.cs b/Govor.Console/Program.cs index 0d421ee..2f77dc7 100644 --- a/Govor.Console/Program.cs +++ b/Govor.Console/Program.cs @@ -23,7 +23,7 @@ namespace Govor.ConsoleClient class Program { static string? AuthToken = null; - static HttpClientService HttpService = new("http://5.129.212.144:5041"); // поменяй URL на свой + static HttpClientService HttpService = new("https://govor-team-govor-88b3.twc1.net"); // поменяй URL на свой private static FriendsClient friendsClient; static Dictionary> ChatHistory = new(); static string CurrentChatUser = null; @@ -67,7 +67,7 @@ namespace Govor.ConsoleClient { AuthToken = await HttpService.LoginAsync(loginUsername, loginPassword); HttpClient sharedClient = new(); - sharedClient.BaseAddress = new Uri("http://5.129.212.144:5041"); + sharedClient.BaseAddress = new Uri("https://govor-team-govor-88b3.twc1.net"); sharedClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AuthToken); friendsClient = new FriendsClient(sharedClient); @@ -92,7 +92,7 @@ namespace Govor.ConsoleClient { AuthToken = await HttpService.RegisterAsync(regUsername, regPassword, inviteCode); HttpClient sharedClient = new(); - sharedClient.BaseAddress = new Uri("http://5.129.212.144:5041"); + sharedClient.BaseAddress = new Uri("https://govor-team-govor-88b3.twc1.net"); sharedClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", AuthToken); friendsClient = new FriendsClient(sharedClient);