This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async function () { | |
const token = JSON.parse(localStorage.getItem('user')).token; | |
const headers = new Headers(); | |
const url = 'https://web-api.snapp.ir/api/v1/ride/history'; | |
const query = '?page='; | |
let total = 0; | |
let page = 1; | |
headers.append('Authorization', token); | |
headers.append('Content-Type', 'application/json'); |