const path = require('path');
const config = {
    '/projectx/projectId/join_1/data.do': {
        data: './json/signData.json'
    },
    "/projectx/projectId/join_1/join.do": {
        data: './json/signIn.json'
    },
    "/projectx/projectId/scoring_1/spData.do": {
        data: './json/queryProps.json'
    },
    "/projectx/projectId/scoring_1/start.do": {
        data: './json/start.json'
    },
    "/projectx/projectId/scoring_1/submit.do": {
        data: './json/finalSubmit.json'
    },
    "/projectx/projectId/scoring_1/revive.do": {
        data: './json/revive.json'
    },
    "/projectx/projectId/scoring_1/push.do": {
        data: './json/constantSubmit.json'
    },
    "/projectx/projectId/join_3/data.do": {
        data: './json/rankList.json'
    },
    "/projectx/projectId/getRanking.query": {
        data: './json/queryRankListData.json'
    },
    "/projectx/projectId/join_3/userInfoList.do": {
        data: './json/queryNickname.json'
    },
    "/projectx/projectId/scoring_1/visit.do": {
        data: './json/visit.json'
    },
    "/projectx/projectId/join_2/data.do": {
        data: './json/taskData.json'
    },
    "/projectx/projectId/join_2/join.do": {
        data: './json/taskComplete.json'
    },
    "/projectx/projectId/assist_1/createItem.do": {
        data: './json/shareData.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;