Closed juji closed 1 month ago
Sometimes, we need to customize axios.
Example:
import axios from 'axios' import axiosTauriApiAdapter from '@juji/axios-tauri-api-adapter'; import { setAxios, GetListByKeyword } from 'youtube-search-api' const httpClient = axios.create({ adapter: axiosTauriApiAdapter, headers: { origin: 'https://www.youtube.com' } }); setAxios(httpClient) GetListByKeyword('lofi').then(() => {})
Please folk it instead of pull requests.
Sometimes, we need to customize axios.
Example: