'use strict';

angular.module('squareteam.ressources')
  .factory('UserRessource', function($resource, $http) {
    var userRessource;

    userRessource = $resource('apis://users/:id', {
      // id: '@'
    }, {
      update: {
        method: 'PUT'
      }
    });

    userRessource.me = function() {
      return $http.get('apis://users/me');
    };

    // Creating user is a public route
    userRessource.create = function(data) {
      return $http.post('api://user', data);
    };

    ////////////////////////
    // User Organizations //
    ////////////////////////
    userRessource.organizations = $resource('apis://users/:userId/organizations', {});

    return userRessource;
  });
@@ -266,95 +266,8 @@
 );%0A%0A
-    userRessource.me = function() %7B%0A      return $http.get('apis://users/me');%0A    %7D;%0A%0A
     

remove user.me method