'use strict';

angular.module('riakDashboardApp')
  .factory('Bucket', ['$resource', function($resource) {
    return $resource('http://127.0.0.1:8098/buckets', {}, {
      get: {method: 'JSONP', params: {buckets: true}, headers: {'Content-Type': 'application/json'}}
    });
  }])

  .controller('MainCtrl', ['$scope', 'Bucket', function ($scope, Bucket) {

    var lerolero = Bucket.get();
    console.log(lerolero)

    $scope.awesomeThings = [
      'HTML5 Boilerplate',
      'AngularJS',
      'Karma'
    ];
  }]);

@@ -144,11 +144,11 @@
 .1:8
-098
+889
 /buc
@@ -202,68 +202,48 @@
 s: %7B
-buckets: true%7D, headers: %7B'Content-Type': 'application/json'
+callback: 'JSON_CALLBACK', buckets: true
 %7D%7D%0A 
@@ -292,16 +292,25 @@
 $scope',
+ '$http',
  'Bucket
@@ -329,16 +329,23 @@
 ($scope,
+ $http,
  Bucket)

implement mock used api python package