added api route for getting all posts for a given user