const path = require('path');
const config = {
    '/projectx/projectId/dxq_join_1/data.do': {
        data: './json/signData.json'
    },
    "/projectx/projectId/dxq_join_1/join.do": {
        data: './json/signIn.json'
    },
    "/projectx/projectId/dxq_scoring_1/spData.do": {
        data: './json/queryProps.json'
    },
    "/projectx/projectId/dxq_scoring_1/start.do": {
        data: './json/start.json'
    },
    "/projectx/projectId/dxq_scoring_1/submit.do": {
        data: './json/finalSubmit.json'
    },
    "/projectx/projectId/dxq_scoring_1/revive.do": {
        data: './json/revive.json'
    },
    "/projectx/projectId/dxq_scoring_1/push.do": {
        data: './json/constantSubmit.json'
    },
    "/projectx/projectId/dxq_join_3/data.do": {
        data: './json/rankList.json'
    },
    "/projectx/projectId/getRanking.query": {
        data: './json/queryRankListData.json'
    },
    "/projectx/projectId/dxq_join_3/userInfoList.do": {
        data: './json/queryNickname.json'
    },
    "/projectx/projectId/dxq_scoring_1/visit.do": {
        data: './json/visit.json'
    },
    "/projectx/projectId/dxq_join_2/data.do": {
        data: './json/taskData.json'
    },
    "/projectx/projectId/dxq_join_2/join.do": {
        data: './json/taskComplete.json'
    },
    "/hdtool/rank/recentRankListNew": {
        data: './json/rankListOld.json'
    },
    "/projectx/projectId/dxq_join_2/join.do": {
        data: './json/share.json'
    },
    "/projectx/projectId/join_5/frontInfo.do": {
        data: './json/frontInfo.json'
    },
}

for (let item in config) {
    /* let key = item.replace(new RegExp("{", "g"), "");
    key = key.replace(new RegExp("}", "g"), "");
    config[key] = config[item]; */

    if (config.hasOwnProperty(item))
        config[item].path = path.resolve(__dirname, config[item].data);
}
module.exports = config;