Hi there, I have been staring at this for the whole day now and am unsure how to go about this part of the task. I am thinking you want us to see if ':date :method' or ':date :url' are included in configString? If this is not the case please point me in the right direction, my brain feels fried and I feel that I am misunderstanding something.
I have tried different variations of the below but nothing is passing the tests- any guidance would be great.
export const logger = (configString) => (req, res, next) => {
let method = req.method;
let url = req.url;
let date = getFormattedDate();
if (configString.includes(':date :method')) {
console.log(`${date, method}`)
} else if (configString.includes(':date :url')) {
console.log(`${date, url}`)
}
next();
}