api collective -> list

This commit is contained in:
tmshv committed 2016-02-24 21:07:35 +03:00
1 parent 4d78366816
commit f641c0b4d3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import EndPoint from './EndPoint';
export default class APICollective extends EndPoint {
collective(sort=null) {
list(sort=null) {
let url = '/collective';
if(sort) url = `/collective?sort=${sort.join(',')}`;
return this.request.get(url, {cache: true});