detroit city served as its capital