Skip to content

Instantly share code, notes, and snippets.

@gnurgeldiyev
gnurgeldiyev / api.js
Last active November 25, 2023 07:58
How to get the response time from Axios
const axios = require('axios').default
const API_BASE_URL = 'https://api.spacexdata.com/v3'
const API = axios.create({
baseURL: API_BASE_URL
})
/*
* setting interceptors to be able
* to know response time of the each request