Загрузка данных


// Перезапрашиваем данные карт
fetch('/api/user/cards', { 
    headers: { 'Authorization': 'Bearer ' + localStorage.getItem('token') }
})
.then(r => r.json())
.then(data => console.log(data));