router now gets the api as $_GET parameter