Moving the api resources to the api router