Using the .env file challenge not working with

Hi everybody, as the title of my posts suggests I cannot pass this challenge. I have tried various solutions and they all do what the challenge says to do , but the test wont pass.

Here is what I’ve done so far,

  1. Created the .env file as the cloned repository did not have one.(If the repository did have one and its hidden, I do not know how to reveal it. The way the challenge is worded implies the file already exists, as it never instructs the student to create one.)

  2. added “MESSAGE_STYLE=uppercase” without quotes to .env

  3. Here is my current working solution

let data = {"message": "Hello json"};
          data.message = data.message.toUpperCase();
        return res.json(data); 

and finally here is the link to my page

Any help would be appreciated

Link to the challenge:

I figured it out in case any one has this same problem. This has to be the first route in your myApp.js file in order to work.

I have been stuck trying to figure out why I couldn’t get this to work. Putting the json route first resolved my issue. Thank you!