API Slim PHP / Angular JS