DEV Community


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

・1 min read

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:

Discussion (0)