I am doing a Laravel Vue project for school and i am supposed to get a user by sending its email from the client, but when the server responds i get an empty array from the response data instead of the data i want from the database. 

Login.vue

```
login() {

        this.showMessage = true;
        this.typeofmsg = "alert";
        this.message = "Loggin in...";

        axios.post('api/login', this.user)
            .then(response => {
                const token = response.data.access_token;
                this.$store.commit('setAccessToken', token);
                return axios.get('api/users/me', this.user.email);
            })
            .then(response => {
                console.log(response);
            })
            .catch(error => {
                console.log("Error = " + error.message);
            });

    },

```

routes/api.js

```
Route::get('users/me', 'UserControllerAPI@myProfile');

```

UserControllerAPI

```
public function myProfile(Request $request){
    $email = $request->email;
    $user = User::where('email', $email)->first();
    return new UserResource($user);
}

```

If i try to get it with postman it works
[![enter image description here](https://i.stack.imgur.com/dHc7o.png)](https://i.stack.imgur.com/dHc7o.png)

And in the dev tools console i get this 

[![enter image description here](https://i.stack.imgur.com/gLzSq.png)](https://i.stack.imgur.com/gLzSq.png)

Sorry if i wasn't clear enought or it is something wrongly made, i have been trying to fix this since yesterday and its driving me crazy. Any help appreciated

Edit: Had the route wrong, but i changed it and i get the same, no data. I changed the console picture too