Map hubs with attributes
Open
area-signalr
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Is your feature request related to a problem? Please describe the problem.
I am trying to route hubs manually in programs,cs
### Describe the solution you'd like
It would be great if hubs can be mapped with
```
[Hub]
[Route("/chathub")]
public class ChatHub : Hub
```
similar to controllers
```
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
```
instead of `app.MapHub("/chathub");` in programs.cs
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.