new api route to respond with all of the posts as json