routes: filtering by distance

This commit is contained in:
muerwre 2018-12-13 10:19:28 +07:00
parent c69da00b2a
commit 8248d9f166
12 changed files with 546 additions and 43 deletions

View file

@ -39,9 +39,9 @@ export const checkIframeToken = ({ viewer_id, auth_key }) => axios.get(API.IFRAM
}).then(result => (result && result.data && result.data.success && result.data.user)).catch(() => (false));
export const getRouteList = ({
title, distance, author, starred
title, distance, author, starred
}) => axios.get(API.GET_ROUTE_LIST, {
params: {
title, distance, author, starred
title, distance, author, starred
}
}).then(result => (result && result.data && result.data.success && result.data.list)).catch(() => ([]));
}).then(result => (result && result.data && result.data.success && result.data)).catch(() => ([]));