Update ApiController.php

Removed debug code.