Files
habitica/assets/js/services/groupServices.js
T
Tyler Renelle e069718da7 rewrite: add basic chat functionality, `POST
/api/v1/groups/:gid/chat` (which returns chat list). Some bugs present
2013-08-31 19:14:58 -04:00

20 lines
476 B
JavaScript

'use strict';
/**
* Services that persists and retrieves user from localStorage.
*/
angular.module('groupServices', ['ngResource']).
factory('Groups', ['API_URL', '$resource', 'User',
function(API_URL, $resource, User) {
var Group = $resource(API_URL + '/api/v1/groups/:gid',
{gid:'@_id'},
{
'query': {method: "GET", isArray:false}
//postChat: {method: "POST"}
});
return Group;
}
]);