From bb773ba29ad1b9f0728bb01838245e13480511cd Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 3 Oct 2026 20:31:28 +0100 Subject: [PATCH] Fixes the /chathub URL --- src/PostIt/PostIt/ViewModels/Chat/ChatRoomInfo.cs | 11 ----------- src/PostIt/PostIt/ViewModels/Chat/ChatViewModel.cs | 2 +- src/Yavsc.Org/Extensions/HostingExtensions.cs | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 src/PostIt/PostIt/ViewModels/Chat/ChatRoomInfo.cs diff --git a/src/PostIt/PostIt/ViewModels/Chat/ChatRoomInfo.cs b/src/PostIt/PostIt/ViewModels/Chat/ChatRoomInfo.cs deleted file mode 100644 index 548371157..000000000 --- a/src/PostIt/PostIt/ViewModels/Chat/ChatRoomInfo.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Collections.Generic; - -namespace PostIt.ViewModels.Chat -{ - // DTO minimal calqué sur votre logique serveur ChatRoomInfo - public class ChatRoomInfo - { - public string? Name { get; set; } - public List Users { get; set; } = new(); - } -} diff --git a/src/PostIt/PostIt/ViewModels/Chat/ChatViewModel.cs b/src/PostIt/PostIt/ViewModels/Chat/ChatViewModel.cs index 85392cfb1..8a70b507d 100644 --- a/src/PostIt/PostIt/ViewModels/Chat/ChatViewModel.cs +++ b/src/PostIt/PostIt/ViewModels/Chat/ChatViewModel.cs @@ -13,7 +13,7 @@ namespace PostIt.ViewModels.Chat private HubConnection? _connection; [ObservableProperty] - public partial string ServerUrl { get; protected set; } = "http://localhost:5000/chathub"; + public partial string ServerUrl { get; protected set; } = "https://yavsc.pschneider.fr/chathub"; [ObservableProperty] diff --git a/src/Yavsc.Org/Extensions/HostingExtensions.cs b/src/Yavsc.Org/Extensions/HostingExtensions.cs index b5bb65cc5..cc593b860 100644 --- a/src/Yavsc.Org/Extensions/HostingExtensions.cs +++ b/src/Yavsc.Org/Extensions/HostingExtensions.cs @@ -1054,7 +1054,7 @@ public static class HostingExtensions app.MapDefaultControllerRoute(); app.MapStaticAssets(staticAssetsManifestPath); //app.MapRazorPages(); - app.MapHub("/chatHub"); + app.MapHub("/chathub"); WorkflowHelpers.ConfigureBillingService();