https://boilerplate-express-2.geoelycom.repl.co
I’m currently working my way through the microservices and in challenge 6. i8 have this problem, my code link is above, the code is working fine but it won’t pass the test. it has taken me a full day to get here, but now the test won’t passed. i need help please.
here is my code thus far.
var express = require('express');
var app = express();
console.log("Hello World");
app.get('/', (req, res) => {
res.sendFile(__dirname + "/views/index.html")
})
app.use("/public", express.static(__dirname + "/public"));
app.get('/json', (req, res)=>{
let message = "Hello Json" ;
process.env.MESSAGE_STYLE === "uppercase" ? message = message.toUpperCase() : "" ;
res.json({message});
})
module.exports = app;