The governing authorities of municipalities shall have the power to make regulations to prevent the introduction and spread of contagious or infectious diseases; to make quarantine laws for that purpose, and to enforce the same within five miles of the corporate limits; and to establish pesthouses outside the corporate limits, and to provide for the support and government of the same.