Commit 434042bf by Mariusz

Removed confusing '/' at the end of resources path

parent 443e1067
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
module.exports = function ($http) { module.exports = function ($http) {
this.getInfo = function (app) { this.getInfo = function (app) {
return $http.get(app.url + '/info/'); return $http.get(app.url + '/info');
}; };
this.getMetrics = function (app) { this.getMetrics = function (app) {
return $http.get(app.url + '/metrics/'); return $http.get(app.url + '/metrics');
}; };
this.getEnv = function (app) { this.getEnv = function (app) {
return $http.get(app.url + '/env/'); return $http.get(app.url + '/env');
}; };
this.getHealth = function (app) { this.getHealth = function (app) {
return $http.get(app.url + '/health/'); return $http.get(app.url + '/health');
}; };
}; };
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
module.exports = function ($http) { module.exports = function ($http) {
this.getInfo = function (app) { this.getInfo = function (app) {
return $http.get(app.url + '/info/') return $http.get(app.url + '/info')
.success(function (response) { .success(function (response) {
app.version = response.version; app.version = response.version;
delete response.version; delete response.version;
...@@ -28,7 +28,7 @@ module.exports = function ($http) { ...@@ -28,7 +28,7 @@ module.exports = function ($http) {
}); });
}; };
this.getHealth = function (app) { this.getHealth = function (app) {
return $http.get(app.url + '/health/') return $http.get(app.url + '/health')
.success(function (response) { .success(function (response) {
app.status = response.status; app.status = response.status;
}) })
...@@ -43,7 +43,7 @@ module.exports = function ($http) { ...@@ -43,7 +43,7 @@ module.exports = function ($http) {
}); });
}; };
this.getLogfile = function (app) { this.getLogfile = function (app) {
return $http.head(app.url + '/logfile/') return $http.head(app.url + '/logfile')
.success(function () { .success(function () {
app.providesLogfile = true; app.providesLogfile = true;
}) })
......
...@@ -17,6 +17,6 @@ ...@@ -17,6 +17,6 @@
module.exports = function ($http) { module.exports = function ($http) {
this.getDump = function (app) { this.getDump = function (app) {
return $http.get(app.url + '/dump/'); return $http.get(app.url + '/dump');
}; };
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment