Created the routing for the PHP api calls