timeline more; spinner; common update;
This commit is contained in:
1 parent
38fac9c033
commit
bed2cfad22
8 files changed
+109
-28
No files matched your search
+4
-2
@@ -2,12 +2,14 @@
|
||||
* Created by tmshv on 22/11/14.
|
||||
*/
|
||||
|
||||
var query = require("../../utils/net").query;
|
||||
|
||||
function APIFeed(http){
|
||||
this.request = http;
|
||||
}
|
||||
|
||||
APIFeed.prototype.feed = function() {
|
||||
return this.request.get("/news");
|
||||
APIFeed.prototype.feed = function(count, portion) {
|
||||
return this.request.get("/news?"+query([["count", count], ["portion", portion]]));
|
||||
};
|
||||
|
||||
module.exports = APIFeed;
|
||||
Reference in new issue
Block a user