changed 'posts' to 'post' in routes