text: import axios from 'axios'
  const url = '/api/login'
  
  const login = async (credentials) => {
      try {
          const response = await axios.post(url, credentials)
          console.log('server returned login data:')
          console.log(response.body)
          return response.data
      } catch (error) {
          console.log('login service logged error.')
          console.log(error.response.data)
          return error.response.data
      }
  }
  
  export default { login }