When a city or borough intervenes between two ends of a county road, and the municipality has failed to properly improve the municipal streets constituting the shortest and most reasonable route through said municipality which will connect the two ends of such county road, the board of commissioners may contract with the corporate authorities of the municipality that the shortest and most reasonable route through said municipality connecting the two ends of such highway be improved.
16 P.S. § 5920