mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-10-30 17:14:43 +00:00 
			
		
		
		
	Ready to implement update of visibility level
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user