api.js 198 Bytes
Newer Older
zhanghaozhe committed
1
import config from './proxy-config'
zhanghaozhe committed
2

zhanghaozhe committed
3
let api = {}
zhanghaozhe committed
4

zhanghaozhe committed
5 6 7
Object.keys(config).forEach(item => {
    if(item !== 'proxy'){
        api[item] = config[item][process.env.NODE_ENV]
zhanghaozhe committed
8
    }
zhanghaozhe committed
9 10
})

zhanghaozhe committed
11
export default api