Update index.php

Response of RESTController is for array