index.js 319 Bytes
import axios from 'axios'

const instance = axios.create({
    baseURL: process.env.VUE_APP_API_URL,
});

function registerUser(userData) {
    return instance.post('RegistUser', userData);
  }
  
  function loginUser(userData) {
    return instance.post('login', userData);
  }
  
  export { registerUser, loginUser };