Added GetPostsByCategory in PostsController