import axios from '../bc-libs/api.request'
import config from '@/config'
export const getRouterReq = () => {
  let menuUrl;
  if (config.deploymentStandAlone){
    menuUrl = 'api/v1/rbac/menu/loginUser/parentMenuCode/'+config.systemCode
  }else if (config.deploymentStructureMerger){
    menuUrl = 'api/v1/invokeCas/menu/loginUser'
  }else {
    menuUrl = 'cas/api/v1/rbac/menu/loginUser/parentMenuCode/'+config.systemCode
  }
  return axios.request({
      url: menuUrl,
      method: 'get'
    })
}
