convert preview to posts in routes