I try add signalR to a new ASP.NET Core Web API project created for .net 7.0.
I try to follow the sample found at: GitHub AspNetCore.Docs/aspnetcore/signalr/ Without success because they pass through a StartUp class which seems to be the old way to do the job.
Also, the sample use IApplicationBuilder instead of a WebApplication object as the template create for us for a new project in Visual Studio 2022.
So how to define a route for our hub?
See doc: Use hubs in SignalR for ASP.NET Core
Use:
Just for reference: