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

Ready to implement likes update

This commit is contained in:
Pierre HUBERT 2020-03-21 12:07:52 +01:00
parent c83d722c82
commit aa21a2a5e6
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,19 @@
import { RequestHandler } from "../entities/RequestHandler";
/**
* Likes controller
*
* @author Pierre HUBERT
*/
export class LikesController {
/**
* Update like status over an element
*
* @param h Request handler
*/
public static async Update(h: RequestHandler) {
// TODO : implement
}
}

View File

@ -13,6 +13,7 @@ import { FriendsController } from "./FriendsController";
import { MoviesController } from "./MoviesController"; import { MoviesController } from "./MoviesController";
import { PostsController } from "./PostsController"; import { PostsController } from "./PostsController";
import { CommentsController } from "./CommentsController"; import { CommentsController } from "./CommentsController";
import { LikesController } from "./LikesController";
/** /**
* Controllers routes * Controllers routes
@ -214,6 +215,10 @@ export const Routes : Route[] = [
{path: "/comments/delete", cb: (h) => CommentsController.Delete(h)}, {path: "/comments/delete", cb: (h) => CommentsController.Delete(h)},
// Likes controller
{path: "/likes/update", cb: (h) => LikesController.Update(h)},
// Notifications controller // Notifications controller
{path: "/notifications/count_unread", cb: (h) => NotificationsController.CountUnread(h)}, {path: "/notifications/count_unread", cb: (h) => NotificationsController.CountUnread(h)},