From f40f164e4d24a217ce812937c1e40dbf700aec3b Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Wed, 24 Feb 2016 20:56:45 +0300 Subject: [PATCH] APICollective sort option --- src/client/api/APICollective.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/api/APICollective.js b/src/client/api/APICollective.js index 53d52132..99b6d3b4 100644 --- a/src/client/api/APICollective.js +++ b/src/client/api/APICollective.js @@ -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}); } } \ No newline at end of file