The 1995 peace accords , which ended the war in the former Yugoslavia , split Bosnia into a Serb Republic and a Muslim-Croat Federation .