Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 37eaeb1

Browse files
committed
remove trash
1 parent 2410ae7 commit 37eaeb1

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

app/js/services.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,7 @@
22

33
/* Services */
44

5-
6-
7-
//services.value('StackMobPublicKey', '2301fac2-e4e4-46ec-8061-7ebcb1d53698');
85
var publicKey = '2301fac2-e4e4-46ec-8061-7ebcb1d53698';
9-
var headers = {
10-
'Accept': 'application/vnd.stackmob+json; version=0',
11-
'X-StackMob-API-Key': publicKey,
12-
'X-StackMob-Proxy-Plain': 'stackmob-api',
13-
'X-StackMob-User-Agent': 'StackMob (JS; 0.9.1)',
14-
'X-StackMob-Expand': 1,
15-
'Content-Type': 'application/json'
16-
};
17-
headers['X-StackMob-API-Key-'+publicKey] = 1;
186

197
angular.module('app.services', []).factory('model', function($rootScope) {
208
var service = {};
@@ -36,7 +24,7 @@ angular.module('app.services', []).factory('model', function($rootScope) {
3624
*/
3725
service.get = function(id, callback) {
3826
var options = {};
39-
options[service.schema + '_id'] = id;
27+
options[schema + '_id'] = id;
4028
service.model.set(options);
4129
service.model.fetch(callbacks_(callback));
4230
};

0 commit comments

Comments
 (0)