From 5d77529497c168b014f483e794131ade3cce092c Mon Sep 17 00:00:00 2001 From: wea_ondara Date: Wed, 29 May 2024 18:38:28 +0200 Subject: [PATCH] fix dashboard websocket route --- backend/src/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes.ts b/backend/src/routes.ts index f5c6386..25da7e9 100644 --- a/backend/src/routes.ts +++ b/backend/src/routes.ts @@ -7,7 +7,7 @@ import expressWs from 'express-ws'; export function registerRoutes(express: Express, config: ConfigType, ws: expressWs.Instance): void { RegisterRoutes(express); // (express as any as expressWs.Application).ws('ws/dashboard', (ws, req, next) => isAuthenticatedMiddleware(req, req.res!, next)); - (express as any as expressWs.Application).ws('ws/dashboard', (ws, req) => { + (express as any as expressWs.Application).ws('/ws/dashboard', (ws, req) => { // ws.on('open', function () { // console.log(this); // });