Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
samsep committed Nov 7, 2015
1 parent ac7e5e5 commit e9d4b25
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions dist/main.js
Expand Up @@ -586,22 +586,14 @@

(function() {
'use strict';
var srv, transformIdOnlyResponse, transformResponse;
var srv, transformResponse;

transformResponse = function(response) {
var parsed, ref;
parsed = JSON.parse(response);
return (parsed != null ? (ref = parsed.result) != null ? ref.content : void 0 : void 0) || [];
};

transformIdOnlyResponse = function(response) {
var parsed, ref;
parsed = JSON.parse(response);
return {
id: parsed != null ? (ref = parsed.result) != null ? ref.content : void 0 : void 0
};
};

srv = function($resource, API_URL) {
var methods, params, url;
url = API_URL + '/v3/projects/:id';
Expand All @@ -611,11 +603,11 @@
methods = {
put: {
method: 'PUT',
transformResponse: transformIdOnlyResponse
transformResponse: transformResponse
},
post: {
method: 'POST',
transformResponse: transformIdOnlyResponse
transformResponse: transformResponse
},
get: {
transformResponse: transformResponse
Expand Down

0 comments on commit e9d4b25

Please sign in to comment.