The mayor and each of the aldermen shall be bound to keep the peace, and shall be ex officio justice of the peace, so as to enable them to issue warrants for the violations of the criminal law of the state, committed within the City of Fort Valley, and shall have full power on examination to commit the offenders to jail or to bail them, if the offense be bailable, to appear before the court having jurisdiction.