Download lib/api.ts from ERNIE-Community/DeepSite-Using-ERNIE: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/ERNIE-Community/DeepSite-Using-ERNIE/resolve/main/lib/api.ts
- Command line
-
hf download hf://spaces/ERNIE-Community/DeepSite-Using-ERNIE/lib/api.ts
-
curl -L -o api.ts https://huggingface.co/spaces/ERNIE-Community/DeepSite-Using-ERNIE/resolve/main/lib/api.ts
329 Bytes
| import axios from "axios"; | |
| export const api = axios.create({ | |
| baseURL: `/api`, | |
| headers: { | |
| cache: "no-store", | |
| }, | |
| }); | |
| export const apiServer = axios.create({ | |
| baseURL: process.env.NEXT_APP_API_URL as string, | |
| headers: { | |
| cache: "no-store", | |
| }, | |
| }); | |
| api.interceptors.request.use((config) => { | |
| return config; | |
| }); | |