+ APICollective

This commit is contained in:
tmshv committed 2016-02-24 18:52:43 +03:00
1 parent f91dfcbcdf
commit 56045a1b03
2 files changed
+10

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import EndPoint from './EndPoint';
export default class APICollective extends EndPoint {
collective() {
let url = '/collective';
return this.request.get(url, {cache: true});
}
}
+2
View File
@@ -1,6 +1,7 @@
import APIFeed from './APIFeed';
import APIGallery from './APIGallery';
import APIDocument from './APIDocument';
import APICollective from './APICollective';
export default function (app) {
app.factory('api', function ($http) {
@@ -8,6 +9,7 @@ export default function (app) {
api.news = new APIFeed($http);
api.gallery = new APIGallery($http);
api.document = new APIDocument($http);
api.collective = new APICollective($http);
return api;
});