mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-27 22:18:52 +00:00
Can update likes status through user websocket
This commit is contained in:
parent
27785849b4
commit
23733b229e
@ -8,10 +8,17 @@
|
||||
*/
|
||||
|
||||
import { UserWebSocketRequestsHandler } from "../entities/WebSocketRequestHandler";
|
||||
import { LikesController } from "./LikesController";
|
||||
|
||||
export interface UserWebSocketRoute {
|
||||
title: string,
|
||||
handler: (h: UserWebSocketRequestsHandler) => Promise<void>
|
||||
}
|
||||
|
||||
export const UserWebSocketRoutes: UserWebSocketRoute[] = []
|
||||
export const UserWebSocketRoutes: UserWebSocketRoute[] = [
|
||||
|
||||
// Likes controller
|
||||
{title: "likes/update", handler: (h) => LikesController.Update(h)},
|
||||
|
||||
|
||||
]
|
Loading…
Reference in New Issue
Block a user