mirror of
https://github.com/coaidev/coai.git
synced 2025-05-23 23:10:13 +09:00
14 lines
370 B
TypeScript
14 lines
370 B
TypeScript
import axios from "axios";
|
|
|
|
export const deploy: boolean = true;
|
|
export let rest_api: string = "http://localhost:8094";
|
|
export let ws_api: string = "ws://localhost:8094";
|
|
|
|
if (deploy) {
|
|
rest_api = "https://nioapi.fystart.cn";
|
|
ws_api = "wss://nioapi.fystart.cn";
|
|
}
|
|
|
|
axios.defaults.baseURL = rest_api;
|
|
axios.defaults.headers.post["Content-Type"] = "application/json";
|