DEV Community

sm-a
sm-a

Posted on

How I use Axios with nodeJS and expressjs? I get "undefined" back. What I make wrong?

I only want to receive a JSON response via GET. Unfortunately I just get an "undefined" when I execute the code. The URL is correct. If I call the URL directly with the web browser I get a JSON back.

What I do wrong?

Here my Code:

Top comments (0)