dev
This commit is contained in:
24
src/config/api.js
Normal file
24
src/config/api.js
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
// API 基础地址
|
||||
// const BASE_URL = 'https://wxapi.est-live.cn';
|
||||
// const BASE_URL = 'http://localhost:3007';
|
||||
const BASE_URL = 'http://192.168.42.188:3007';
|
||||
// const BASE_URL = '';
|
||||
// API 路径配置
|
||||
const API_URLS = {
|
||||
// 竞赛相关
|
||||
COMPETITION: {
|
||||
DATA: `${BASE_URL}/api/competition/data`,
|
||||
STATUS: `${BASE_URL}/api/competition/status`,
|
||||
START: `${BASE_URL}/api/competition/start`,
|
||||
END: `${BASE_URL}/api/competition/end`,
|
||||
},
|
||||
// 连接图相关
|
||||
CONNECTION: {
|
||||
MAP: `${BASE_URL}/api/connectionMap`,
|
||||
MAP_WITH_SCENE: (scene) => `${BASE_URL}/api/connectionMap?scene=${scene}`,
|
||||
INIT: `${BASE_URL}/api/initConnectionMap`,
|
||||
},
|
||||
};
|
||||
|
||||
export { BASE_URL, API_URLS };
|
||||
Reference in New Issue
Block a user