Merge pull request #2536 from mabashian/rest-trailing-slash

Added trailing / to the end of our urls
This commit is contained in:
Michael Abashian 2016-06-21 11:14:21 -04:00 committed by GitHub
commit e72f371a1e

View File

@ -62,7 +62,8 @@ export default
headers: {},
setUrl: function (url) {
this.url = url;
// Ensure that a trailing slash is present at the end of the url (before query params, etc)
this.url = url.replace(/\/?(\?|#|$)/, '/$1');
},
checkExpired: function () {
return ($rootScope.sessionTimer) ? $rootScope.sessionTimer.isExpired() : false;