diff --git a/src/controllers/PostsController.ts b/src/controllers/PostsController.ts index 38be7f9..d6bcd60 100644 --- a/src/controllers/PostsController.ts +++ b/src/controllers/PostsController.ts @@ -298,6 +298,18 @@ export class PostsController { }); } + /** + * Change the visiblity level of a post + * + * @param h Request handler + */ + public static async SetVisibilityLevel(h: RequestHandler) { + + // TODO : implement + + h.success(""); + } + /** * Send multiple posts to the API * diff --git a/src/controllers/Routes.ts b/src/controllers/Routes.ts index 469e88d..18b2814 100644 --- a/src/controllers/Routes.ts +++ b/src/controllers/Routes.ts @@ -194,6 +194,8 @@ export const Routes : Route[] = [ {path: "/posts/create", cb: (h) => PostsController.CreatePost(h)}, + {path: "/posts/set_visibility_level", cb: (h) => PostsController.SetVisibilityLevel(h)}, + // Notifications controller