fixing routes to make devise work for api