Fixes the /chathub URL

This commit is contained in:
Paul Schneider 2026-10-03 20:31:28 +01:00
commit bb773ba29a
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
3 changed files with 2 additions and 13 deletions

View file

@ -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<string> Users { get; set; } = new();
}
}

View file

@ -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]

View file

@ -1054,7 +1054,7 @@ public static class HostingExtensions
app.MapDefaultControllerRoute();
app.MapStaticAssets(staticAssetsManifestPath);
//app.MapRazorPages();
app.MapHub<ChatHub>("/chatHub");
app.MapHub<ChatHub>("/chathub");
WorkflowHelpers.ConfigureBillingService();