mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
backend: route list icon
This commit is contained in:
parent
6ffdca22d7
commit
5aae945517
5 changed files with 37 additions and 6 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue