APICollective sort option
This commit is contained in:
1 parent
0dd03908b7
commit
f40f164e4d
1 file changed
+2
-1
@@ -1,8 +1,9 @@
|
|||||||
import EndPoint from './EndPoint';
|
import EndPoint from './EndPoint';
|
||||||
|
|
||||||
export default class APICollective extends EndPoint {
|
export default class APICollective extends EndPoint {
|
||||||
collective() {
|
collective(sort=null) {
|
||||||
let url = '/collective';
|
let url = '/collective';
|
||||||
|
if(sort) url = `/collective?sort=${sort.join(',')}`;
|
||||||
return this.request.get(url, {cache: true});
|
return this.request.get(url, {cache: true});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user