Question: Problem
=======

I need to create an array that takes the argmax and based on that maximum value position fill the array with `[1,0]` while the other fields that are not the maximum will be filled with `[0,1]`.

Example:
--------

Given the vector `a`:

```
a.shape = (3,2)
a = np.array([[1,0],[1,2],[1,3]])

```

Return the vector `b`:

```
b.shape = (3,2,2)
b = np.array([[[1,0],[0,1]],[[0,1],[1,0]],[[0,1],[1,0]]])

```

Answer: 
With Axios you can path query params to GET call in 2 different ways:

1. By putting them into the endpoint path

`await axios.get('/endpoint?key=value&key2=value2');`

2. Add them to the config argument in `params` property object as key-value

`await axios.get('/endpoint', { params: {key: 'value', key2: 'value2' }});`

Your confusion absolutely makes sense, you try to use same way to pass param for get and post methods, but in Axios these methods have different number of arguments: post(url, data, config), get(url, config)

Let's return to your example:
`var response = await axios.get('/endpoint',{ key: 'value' });`

So now you can see that `{ key: 'value' }` object that you pass as a second argument is request config and isn't a data.

You can learn more about request config params here - <https://github.com/axios/axios#request-config>
I believe the problem is that you want to access body by

```
console.log('req.body');

```

instead of

```
console.log(req.body);

```

Also, as pointed above, GET doesn't have body.