The city or town council of any city or town of over one thousand inhabitants shall keep in good repair all the streets, ways and bridges within the limits of the city or town and for such purpose it is invested with all the powers, rights and privileges within the limits of such city or town that are given to the governing bodies of the several counties of this State as to the public roads.