create PostsController.php for posts controller
Post index action