Tell us what’s happening:
Describe your issue in detail here.
Your project link(s)
let express = require(‘express’);
let app = express();
app.get(“/”, (req, res) => res.sendFile(${__dirname}/views/index.html
));
app.use(“/public”, express.static(${__dirname}/public
))
app.get(“/json”, (req, res) => {
let response = “”;
if (process.env.MESSAGE_STYLE === “uppercase”) {
response = “Hello World”.toUpperCase();
} else {
response = “Hello World”;
}
res.json({
message: response
});
});
alguno conoce el error
solution: boilerplate-express - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Challenge: Basic Node and Express - Use the .env File
Link to the challenge: