router changed to api router