+ APICollective
This commit is contained in:
1 parent
f91dfcbcdf
commit
56045a1b03
2 files changed
+10
No files matched your search
@@ -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});
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user