text: 'use strict';
  
  angular.module('mtApp')
      .factory('User', function ($resource) {
          return $resource('api/users/:login', {}, {
                  'query': {method: 'GET', isArray: true},
                  'get': {
                      method: 'GET',
                      transformResponse: function (data) {
                          data = angular.fromJson(data);
                          return data;
                      }
                  }
              });
          });
  