import apiConfig from ‘./config‘;
let Api = {
domain: process.env.URL,
imgUrl: process.env.imgURL,
// api
/*======= 用户 =======*/
// 登陆
login(username, password) {
let data = {
username: username,
password: password
};
return apiConfig.post(‘mobile-api/login‘, data).then( response => response);
},
// 登出
logout() {
return apiConfig.get(‘mobile-api/logout‘).then(response => response);
}
};
export default Api;