Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 5x 5x 5x 3x 3x 5x 3x | import axios from "axios"; const baseURL = "https://api.themoviedb.org/3/"; const axiosInstance = axios.create({ baseURL }); axiosInstance.interceptors.request.use( (config) => { config.params = { ...config.params, api_key: "63d59f2df02d27e6739533218ba6c9d9", }; return config; }, (error) => Promise.reject(error) ); axiosInstance.interceptors.response.use( (response) => response.data, (error) => Promise.reject(error) ); export default axiosInstance; |