1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Can update likes status through user websocket

This commit is contained in:
Pierre HUBERT 2020-03-31 16:42:35 +02:00
parent 27785849b4
commit 23733b229e

View File

@ -8,10 +8,17 @@
*/ */
import { UserWebSocketRequestsHandler } from "../entities/WebSocketRequestHandler"; import { UserWebSocketRequestsHandler } from "../entities/WebSocketRequestHandler";
import { LikesController } from "./LikesController";
export interface UserWebSocketRoute { export interface UserWebSocketRoute {
title: string, title: string,
handler: (h: UserWebSocketRequestsHandler) => Promise<void> handler: (h: UserWebSocketRequestsHandler) => Promise<void>
} }
export const UserWebSocketRoutes: UserWebSocketRoute[] = [] export const UserWebSocketRoutes: UserWebSocketRoute[] = [
// Likes controller
{title: "likes/update", handler: (h) => LikesController.Update(h)},
]