Updated all posts route in main js