register (formValue) {
    const user = formValue
    return axios.post(ENDPOINT_PATH + 'user', user).then(response => {
      alert(response.data.message)
      this.setUserLogged(response.data.token)
      return response
    },
      )
  }
// Function to call register on API
Function to call register on API
Function to call register on API
register (formValue) {
    const user = formValue
    return axios.post(ENDPOINT_PATH + 'user', user).then(response => {
      alert(response.data.message)
      this.setUserLogged(response.data.token)
      return response
    },
      )
  }
register ( formValue ) { const user = formValue return axios . post ( ENDPOINT_PATH + 'user' , user ) . then ( response => { alert ( response . data . message ) this . setUserLogged ( response . data . token ) return response } , ) }
Function to call register on API
Function to call register on API