backend: route list icon

This commit is contained in:
muerwre 2018-11-30 16:30:41 +07:00
parent 6ffdca22d7
commit 5aae945517
5 changed files with 37 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import axios from 'axios/index';
import { API } from '$constants/api';
const arrayToObject = (array, key) => array.reduce((obj, el) => ({ ...obj, [el[key]]: el }));
const arrayToObject = (array, key) => array.reduce((obj, el) => ({ ...obj, [el[key]]: el }), {});
export const checkUserToken = ({ id, token }) => axios.get(API.CHECK_TOKEN, {
params: { id, token }