The legislature shall not impose taxes for the purpose of any county, city, town, or other municipal corporation, but may by law invest in the corporate authorities thereof, respectively, the power to assess and collect taxes for all purposes of such corporation.