Brake warning light on dash

Air or a failure in the front or rear brakes sets.
When only the front or rear brakes get pressure it pushes the switch off center and causes the light to come on.
Start with bleeding and go from there.
Thanks.