mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Created latest posts page.
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user