diff --git a/.env.local b/.env.local index b29adaf..b68aa34 100644 --- a/.env.local +++ b/.env.local @@ -1,5 +1,6 @@ NODE_PATH=src REACT_APP_MODE=local 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 \ No newline at end of file diff --git a/.env.production b/.env.production index 0034a47..9afe313 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,7 @@ NODE_PATH=src REACT_APP_MODE=production 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 \ No newline at end of file diff --git a/src/apis/board2.js b/src/apis/board2.js deleted file mode 100644 index 224dff6..0000000 --- a/src/apis/board2.js +++ /dev/null @@ -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); -}