In the snippet below what does the `\json` mean?

Then, in the /json GET route handler you created in the last challenge, transform the response object’s message to uppercase if process.env.MESSAGE_STYLE equals uppercase . The response object should either be {"message": "Hello json"} or {"message": "HELLO JSON"} , depending on the MESSAGE_STYLE value.

That is simply the string we use to tell app.get() what path to expect from the user.

If you were working locally, and your server at http://localhost, then you would point your browser to http://localhost/json to access that route.

Might also be worth giving the docs a read.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.