A custom request type for AmplifyJS that using AngularJS's $http