refactors api router