1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-28 14:38:52 +00:00

Ready to implement update of visibility level

This commit is contained in:
Pierre HUBERT 2020-03-20 13:41:50 +01:00
parent e8233bc24c
commit 4066b2c6d3
2 changed files with 14 additions and 0 deletions

View File

@ -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
*

View File

@ -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