The mayor shall authorize a zoning official, who shall be responsible for administering the zoning code: provided that the position may be filled by contract, in which case the contract requires approval of the council.