Validation does not seem to be working. I have visited the /json endpoint and changed the conditions (associated with the MESSAGE_STYLE=uppercase variable in the .env file), and confirmed that the message changes (the way it should) in the browser. However, when I submit the solution, it fails. There are no errors in the console, nor are there any errors in the logs of the glitch project, itself. I’ve tried re-writing the function several different ways; they’re all error free, and they output the correct messages to the browser endpoint, but none of them will pass/validate when I submit to freecodecamp. I’ve been at it for days. Any new suggestions would be greatly appreciated. Thanks, everyone!
I just corrected it, but still no success. I’m not sure if they are related, but I also cannot get the next 2 exercises (mounting and chaining the middleware) to pass successfully, either. I have completed all other tasks.
I tried replacing what I had in the server.js file, as well as in the package.json file with the syntax you suggested. It still won’t validate, though.