Spaces:
Running
Running
Download src/api/http.js from brestok/eu-scrapper-ui: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/spaces/brestok/eu-scrapper-ui/resolve/main/src/api/http.js
- Command line
-
hf download hf://spaces/brestok/eu-scrapper-ui/src/api/http.js
-
curl -L -o http.js https://huggingface.co/spaces/brestok/eu-scrapper-ui/resolve/main/src/api/http.js
282 Bytes
| import axios from 'axios' | |
| const http = axios.create({ | |
| baseURL: 'https://brestok-eu-scrapper.hf.space', | |
| timeout: 15000, | |
| headers: { | |
| 'Content-Type': 'application/json', | |
| }, | |
| }) | |
| http.interceptors.response.use( | |
| r => r, | |
| err => Promise.reject(err) | |
| ) | |
| export default http | |