created a /posts url to get the posts json