Slim Framework RESTful API with AngularJS