From 23733b229ef37b693d3e6ad4e08a3aad3cf3b936 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 31 Mar 2020 16:42:35 +0200 Subject: [PATCH] Can update likes status through user websocket --- src/controllers/UserWebSocketRoutes.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/controllers/UserWebSocketRoutes.ts b/src/controllers/UserWebSocketRoutes.ts index 244e251..520b6f4 100644 --- a/src/controllers/UserWebSocketRoutes.ts +++ b/src/controllers/UserWebSocketRoutes.ts @@ -8,10 +8,17 @@ */ import { UserWebSocketRequestsHandler } from "../entities/WebSocketRequestHandler"; +import { LikesController } from "./LikesController"; export interface UserWebSocketRoute { title: string, handler: (h: UserWebSocketRequestsHandler) => Promise } -export const UserWebSocketRoutes: UserWebSocketRoute[] = [] \ No newline at end of file +export const UserWebSocketRoutes: UserWebSocketRoute[] = [ + + // Likes controller + {title: "likes/update", handler: (h) => LikesController.Update(h)}, + + +] \ No newline at end of file