Failed:You should set the content security policies to only allow loading of scripts and CSS from your server.
Failed:You can send a GET request to /api/stock-prices, passing a NASDAQ stock symbol to a stock query parameter. The returned object will contain a property named stockData.
Failed:The stockData property includes the stock symbol as a string, the price as a number, and likes as a number.
Failed:If you pass along 2 stocks, the returned value will be an array with information about both stocks. Instead of likes, it will display rel_likes (the difference between the likes on both stocks) for both stockData objects.
I have been looking in other topics and i dont know what to do
You have Mongoose code in the api.js file but you are not requiring it in and you are using models that do not exist. Nor can I find an actual DB connection.
You are free to ask as many questions as you like that is what we are here for.
But when we see code that is incomplete and it is caused by copy/pasting code we can’t just fix it for you as that would be a disservice to your learning.
I don’t know why you are trying to do this certificate project. It is not the right time for you.
You must finish the MongoDB Mongoose part of the curriculum first. I would also suggest you finish all the other certificate projects that come before this part of the curriculum. This project is deep into the backend part of the curriculum and you should have a firm grasp on the concepts needed.