update route.php to return response object