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:
parent
27785849b4
commit
23733b229e
@ -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)},
|
||||||
|
|
||||||
|
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user