Hello i am tring to do the “APIs and Microservices” i have got to the using .env
Here is the code i am using
app.get(’/’,function(req , res){
var response=null;
if(process.env.MESSAGE_STYLE===“uppercase”)
{
response=“Hello World”.toUpperCase()
} else{
response=“Hello World”
}
res.json({“message”:response})
})
The answer tests says am wrong but when i try to test nothing is wrong. Any help please! Challenge: Use the .env File