diff options
Diffstat (limited to 'BackEnd/Timeline/Startup.cs')
-rw-r--r-- | BackEnd/Timeline/Startup.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Startup.cs b/BackEnd/Timeline/Startup.cs index 1e0d4779..18097e2c 100644 --- a/BackEnd/Timeline/Startup.cs +++ b/BackEnd/Timeline/Startup.cs @@ -26,6 +26,7 @@ using Timeline.Services.Mapper; using Timeline.Services.Timeline;
using Timeline.Services.Token;
using Timeline.Services.User;
+using Timeline.SignalRHub;
using Timeline.Swagger;
namespace Timeline
@@ -85,6 +86,8 @@ namespace Timeline options.InvalidModelStateResponseFactory = InvalidModelResponseFactory.Factory;
});
+ services.AddSignalR();
+
services.AddAuthentication(AuthenticationConstants.Scheme)
.AddScheme<MyAuthenticationOptions, MyAuthenticationHandler>(AuthenticationConstants.Scheme, AuthenticationConstants.DisplayName, o => { });
services.AddAuthorization();
@@ -154,6 +157,7 @@ namespace Timeline app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
+ endpoints.MapHub<TimelineHub>("api/hub/timeline");
});
UnknownEndpointMiddleware.Attach(app);
|