+api gallery + gallery caching;

This commit is contained in:
tmshv committed 2015-07-08 22:06:15 +03:00
1 parent 97966817ea
commit a9a0b2c6b8
3 files changed
+38 -21

No files matched your search

+7 -2
View File
@@ -2,11 +2,16 @@
* Created by tmshv on 22/11/14.
*/
var APINews = require("./news");
var APIGallery = require("./gallery");
module.exports = function(app) {
var minute = 1000 * 60;
app.factory("api", function ($http) {
var api = {};
var Endpoint = require("./news");
api.news = new Endpoint($http);
api.news = new APINews($http);
api.gallery = new APIGallery($http, minute);
return api;
});