I am trying to get the result of the AXIOS query, in another function, but as a result I get Promise. Tell me how to get JSON?
export const get = async (url) => {
     await axios({
            method: 'get',
            url: url,
            credentials: 'include',
            mode: 'cors'
        })
            .then(response => { return response.data});
}
export const getData = async () => {
     await get('http://localhost:7070/data');
}
export const getResult= () => {
    let res = api.getData();
    return {
        type: "TEST",
        payload: res
    }
}
