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); // });