From 4066b2c6d382b33f446cfcb2fc550923c250a33d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 20 Mar 2020 13:41:50 +0100 Subject: [PATCH] Ready to implement update of visibility level --- src/controllers/PostsController.ts | 12 ++++++++++++ src/controllers/Routes.ts | 2 ++ 2 files changed, 14 insertions(+) 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