Skip to content

Commit 01ee4fa

Browse files
committed
Merge pull request safesoftware#9 from safesoftware/feature/url-updates
Update Various URL's That Were Broken
2 parents bb7e0af + 26f9dce commit 01ee4fa

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎v1.1/FMEServer.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ var FMEServer = ( function() {
739739
getSubscription : function(name, callback) {
740740
callback = callback || null;
741741
name = encodeURIComponent(name).replace(/%20/g, '+');
742-
var url = buildURL('{{svr}}/fmerest/{{ver}}/notifications/subscription/' + name);
742+
var url = buildURL('{{svr}}/fmerest/{{ver}}/notifications/subscriptions/' + name);
743743
ajax(url, callback);
744744
},
745745

@@ -820,7 +820,7 @@ var FMEServer = ( function() {
820820
getNotificationTopic : function(name, callback) {
821821
callback = callback || null;
822822
name = encodeURIComponent(name);
823-
var url = buildURL('{{svr}}/fmerest/{{ver}}/notifications/topics' + name);
823+
var url = buildURL('{{svr}}/fmerest/{{ver}}/notifications/topics/' + name);
824824
ajax(url, callback);
825825
},
826826

@@ -849,7 +849,7 @@ var FMEServer = ( function() {
849849
callback = callback || null;
850850
name = encodeURIComponent(name);
851851
description = encodeURIComponent(description).replace(/%20/g, '+');
852-
var url = buildURL('{{svr}}/fmerest/{{ver}}/notifications/topics' + name);
852+
var url = buildURL('{{svr}}/fmerest/{{ver}}/notifications/topics/' + name);
853853
var params = "description=" + description;
854854
ajax(url, callback, 'PUT', params, 'application/x-www-form-urlencoded');
855855
},
@@ -862,7 +862,7 @@ var FMEServer = ( function() {
862862
deleteTopic : function(name, callback) {
863863
callback = callback || null;
864864
name = encodeURIComponent(name);
865-
var url = buildURL('{{svr}}/fmerest/{{ver}}/notifications/topics' + name);
865+
var url = buildURL('{{svr}}/fmerest/{{ver}}/notifications/topics/' + name);
866866
ajax(url, callback, 'DELETE', null, 'application/x-www-form-urlencoded');
867867
},
868868

0 commit comments

Comments
 (0)