import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:3000';
axios.post('/login', {
username: 'test',
password: 'password'
}, {
headers: {
'Content-Type': 'application/json'
}
}).then(response => {
console.log(response);
}).catch(error => {
console.log(error);
});