import * as common from './common';
import * as ruihua from './ruihua';
import * as collect_0722 from './collect_0722';
let projectId = window.CFG.projectId || '';

export default {
  get: {
    [`/projectx/${projectId}/projectRule.query`]: common.rule,
    [`/projectx/${projectId}/score/index.do`]:ruihua.homeindex,
    [`/projectx/${projectId}/invite/accept.do`]:ruihua.accept,
    [`/projectx/${projectId}/score/submit.do`]:ruihua.submit,
    [`/projectx/${projectId}/invite/inviteList.do`]:ruihua.inviteList,
    [`/projectx/${projectId}/activity/exchange.do`]:ruihua.exchange,
    [`/projectx/${projectId}/activity/exchangeList.do`]:ruihua.exchangeList,
    [`/projectx/${projectId}/activity/completeTask.do`]:ruihua.completeTask,
    [`/projectx/${projectId}/score/rankPop.do`]:ruihua.rankPop,
    [`/projectx/${projectId}/leaderboardOption.query`]:ruihua.rankPrize,
    [`/projectx/${projectId}/leaderboard.query`]:ruihua.rankList,
    [`/projectx/${projectId}/leaderboardUser.query`]:ruihua.myrankInfo,
  },
  post: {
    [`/projectx/${projectId}/join.do`]: collect_0722.join
  }
};