Basically. Long story short. My application is requesting the last 10 posts from my mongodb database.
The route /cache should return all of them however it errors that I've given it a slice to send back as json rather than a pointer to a slice.
This is the project.
https://github.com/xavierhazzardadmin/blog
All I did was build it, run it and then use curl to query it.
I probably haven't explained this well enough but I would appreciate some help with fixing it.
Thanks in advance.