Changed AdminPostsController to PostsController and updated corresponding route.