Move posts route to separate file.