/** * User Websocket requests route * * Note : this implementation requires the * user to be signed in to perform requests * * @author Pierre Hubert */ import { UserWebSocketRequestsHandler } from "../entities/WebSocketRequestHandler"; import { LikesController } from "./LikesController"; export interface UserWebSocketRoute { title: string, handler: (h: UserWebSocketRequestsHandler) => Promise } export const UserWebSocketRoutes: UserWebSocketRoute[] = [ // Likes controller {title: "likes/update", handler: (h) => LikesController.Update(h)}, ]