Skip to content

Commit 446bba6

Browse files
bump version no.
1 parent ae4852c commit 446bba6

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

add_angular.dfpkg

56 Bytes
Binary file not shown.

add_angular.zip

56 Bytes
Binary file not shown.

add_angular/app/app.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ angular.module('addressbook', [
1212

1313
])
1414

15-
.constant('INSTANCE_URL', 'http://dreamfactory:8888')
15+
.constant('INSTANCE_URL', 'https://dreamfactory:8888')
1616

17-
.constant('APP_API_KEY', '678104aec64b4e8f575ed6789f0214ef99330e6db6334b41d10551efa1864620')
17+
.constant('APP_API_KEY', '0c7b9f992741c6119c1614557615490080e8187199db589d33d0d35127bcb74a')
1818

1919
.run([
2020
'$cookies', 'APP_API_KEY', '$http', '$rootScope', '$window',
@@ -68,11 +68,17 @@ angular.module('addressbook', [
6868

6969
request: function (config) {
7070

71+
var ignoreWrapping = false;
72+
73+
if (config.url.indexOf ('/user/register') > -1 || config.url.indexOf ('/user/session') > -1) {
74+
ignoreWrapping = true;
75+
}
76+
7177
// Append instance url before every api call
7278
if (config.url.indexOf('/api/v2') > -1) {
7379
config.url = INSTANCE_URL + config.url;
7480

75-
if (config.method == 'POST' || config.method == 'PUT' || config.method == 'PATCH') {
81+
if ((config.method == 'POST' || config.method == 'PUT' || config.method == 'PATCH') && !ignoreWrapping) {
7682
var data;
7783
if (Array.isArray(config.data)) {
7884
config.data = { resource: config.data };

add_angular/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h3>
6868
<md-divider></md-divider>
6969
</div>
7070

71-
<h5 flex="" class="sticky-bottom">Angular Addressbook v1.0.2</h5>
71+
<h5 flex="" class="sticky-bottom">Angular Addressbook v1.0.4</h5>
7272
</md-content>
7373
</md-sidenav>
7474

0 commit comments

Comments
 (0)