import axios from "axios";
import { apiUrl } from "../config/urls";

axios.defaults.baseURL = apiUrl

const responseBody = response => response.data

const methods = {
    logIn: (loginValues) => axios.post(`/Authentication/login`, loginValues).then(responseBody),
    register: (registerValues) => axios.post('/Authentication/register', registerValues).then(responseBody)
}

export default methods