setup route for rest-php