Created latest posts page.

This commit is contained in:
Pierre
2018-02-02 06:56:52 +01:00
parent d913b38a5d
commit 8ae6d01b4f
7 changed files with 82 additions and 1 deletions

View File

@ -25,6 +25,22 @@ ComunicWeb.components.posts.interface = {
},
/**
* Get the list of the latest posts
*
* @param {function} callback What to do when we got response
*/
get_latest: function(callback){
//Prepare API request
var APIuri = "posts/get_latest";
var params = {};
//Perform the request
ComunicWeb.common.api.makeAPIrequest(APIuri, params, true, callback);
},
/**
* Get single post informations
*