APICollective sort option

This commit is contained in:
tmshv committed 2016-02-24 20:56:45 +03:00
1 parent 0dd03908b7
commit f40f164e4d
1 file changed
+2 -1
+2 -1
View File
@@ -1,8 +1,9 @@
import EndPoint from './EndPoint';
export default class APICollective extends EndPoint {
collective() {
collective(sort=null) {
let url = '/collective';
if(sort) url = `/collective?sort=${sort.join(',')}`;
return this.request.get(url, {cache: true});
}
}