Struggling to retrieve data from MongoDB, my code in the server.js file is not working as expected. You can view the code here.
This is the route I'm using in Insomnia for GET requests: here
However, when I test it in Insomnia, I receive the following response:
https://i.sstatic.net/DDfps.jpg
In another project with a similar implementation, everything works fine. I'm unsure of what's going wrong here and would appreciate any assistance.