app.get("/json", (req, res) => {
let mySecret = process.env['MESSAGE_STYLE']
if(mySecret === "uppercase") {
res.json({"message": "Hello json".toUpperCase() });
}else{
res.json = ({"message": "Hello json"});
}
});
any help? not getting through.
regards,
Thanks for help this seems to be working but even the test is not passed. using replit.
the link is https://boilerplate-express-2.zia73.repl.co.
Dear Randell, thanks a lot, it solved the problem and I learned a bit more about replit as well. great thanks again.
regards
system
Closed
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.