Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Refatoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurizio Turatti committed Mar 19, 2016
1 parent 59dc069 commit 2011267
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions angular-restheart.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,33 @@
'base64',
'restangular',
'ui.router'
])
.provider('restheart', function () {
]).provider('restheart', restheart);

this.setBaseUrl = function (f) {
this.baseUrl = f;
};
function restheart() {

this.setLogicBaseUrl = function (f) {
this.logicBaseUrl = f;
};
this.setBaseUrl = function (f) {
this.baseUrl = f;
};

this.onForbidden = function (f) {
this.onForbidden = f;
};
this.setLogicBaseUrl = function (f) {
this.logicBaseUrl = f;
};

this.onTokenExpired = function (f) {
this.onTokenExpired = f;
};
this.onForbidden = function (f) {
this.onForbidden = f;
};

this.onUnauthenticated = function (f) {
this.onUnauthenticated = f;
};
this.onTokenExpired = function (f) {
this.onTokenExpired = f;
};

this.$get = function () {
return this;
};
this.onUnauthenticated = function (f) {
this.onUnauthenticated = f;
};

});
this.$get = function () {
return this;
};
};

})();

0 comments on commit 2011267

Please sign in to comment.