mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 13:29:22 +00:00
Ready to implement update of visibility level
This commit is contained in:
parent
e8233bc24c
commit
4066b2c6d3
@ -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
|
||||
*
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user