AngularJS API controller Admin Panel