add sort switcher

This commit is contained in:
igoradamenko
2018-05-06 14:35:32 +03:00
parent 118ab501f2
commit 75ece05a82
8 changed files with 96 additions and 15 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export const logOut = () => fetcher.get({ url: `/auth/logout`, overriddenApiBase
export const getConfig = () => fetcher.get(`/config`);
export const find = ({ url }) => fetcher.get(`/find?url=${url}&sort=-score&format=tree`);
export const find = ({ sort, url }) => fetcher.get(`/find?url=${url}&sort=${sort}&format=tree`);
export const last = ({ siteId, max }) => fetcher.get(`/last/${max}?site=${siteId}`);