config: production confg fix
parent
96f9bef27a
commit
a3bbaee985
@ -1,5 +1,6 @@
|
|||||||
NODE_PATH=src
|
NODE_PATH=src
|
||||||
REACT_APP_MODE=local
|
REACT_APP_MODE=local
|
||||||
REACT_APP_VERSION = v0.0.1
|
REACT_APP_VERSION = v0.0.1
|
||||||
REACT_APP_API_URL=http://localhost:8090
|
#REACT_APP_API_URL=http://localhost:8090
|
||||||
|
REACT_APP_API_URL=http://211.119.124.73:8090
|
||||||
REACT_APP_SERVER_TIMEOUT=6000
|
REACT_APP_SERVER_TIMEOUT=6000
|
@ -1,6 +1,7 @@
|
|||||||
NODE_PATH=src
|
NODE_PATH=src
|
||||||
REACT_APP_MODE=production
|
REACT_APP_MODE=production
|
||||||
REACT_APP_VERSION = v0.0.1
|
REACT_APP_VERSION = v0.0.1
|
||||||
#REACT_APP_API_URL=http://211.119.124.107:8090
|
#REACT_APP_API_URL=http://localhost:8090
|
||||||
REACT_APP_API_URL=http://localhost:8090
|
#REACT_APP_API_URL=http://211.119.124.9:8090
|
||||||
|
REACT_APP_API_URL=http://211.119.124.107:8090
|
||||||
REACT_APP_SERVER_TIMEOUT=6000
|
REACT_APP_SERVER_TIMEOUT=6000
|
@ -1,33 +0,0 @@
|
|||||||
//----------------------------------------------------------------------------
|
|
||||||
// Board : 게시판 관리
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import axios from 'utils/axios';
|
|
||||||
import { GET_BOARD_LIST, REMOVE_BOARD, SAVE_BOARD, SAVE_BOARD_HIT_CNT, GET_BOARD_LIST2 } from 'commons/ApiUrl';
|
|
||||||
import { setRowId } from './common';
|
|
||||||
|
|
||||||
// eslint-disable-next-line import/prefer-default-export
|
|
||||||
export async function findBoards2(params) {
|
|
||||||
const res = await axios.get(GET_BOARD_LIST2, { params });
|
|
||||||
console.log(res);
|
|
||||||
if (res.success) {
|
|
||||||
res.data = res.data.map((d, idx) => ({ ...d, rowId: setRowId(params, idx) }));
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function saveBoard(params) {
|
|
||||||
// eslint-disable-next-line no-return-await
|
|
||||||
return await axios.post(SAVE_BOARD, params);
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function removeBoard(inCode) {
|
|
||||||
// eslint-disable-next-line no-return-await
|
|
||||||
return await axios.post(REMOVE_BOARD + inCode);
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function modifyBoardHitCount(inCode) {
|
|
||||||
// eslint-disable-next-line no-return-await
|
|
||||||
return await axios.put(SAVE_BOARD_HIT_CNT + inCode);
|
|
||||||
}
|
|
Loading…
Reference in New Issue