get posts data from collection
remove autopublish package and publish the posts collection
added basic routing