Skip to content

Commit

Permalink
Remove public sails.getBaseUrl method
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Nov 2, 2016
1 parent fef448f commit d0fe4ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/app/Sails.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ function Sails() {
this.request = _.bind(this.request, this);
this.lift = _.bind(this.lift, this);
this.lower = _.bind(this.lower, this);
this.getBaseurl = _.bind(this.getBaseurl, this);
this.initialize = _.bind(this.initialize, this);
this.exposeGlobals = _.bind(this.exposeGlobals, this);
this.runBootstrap = _.bind(this.runBootstrap, this);
Expand All @@ -74,6 +73,8 @@ function Sails() {
this.registerActionMiddleware = _.bind(this.registerActionMiddleware, this);
this.reloadActions = _.bind(this.reloadActions, this);
this._controller = this.initializeController(this);
this._getBaseUrl = _.bind(this._getBaseUrl, this);

}


Expand All @@ -88,15 +89,6 @@ Sails.prototype.lift = require('./lift');

Sails.prototype.lower = require('./lower');

Sails.prototype._getBaseUrl = require('./getBaseurl');
Sails.prototype.getBaseurl = function() {
this.log.warn('sails.getBaseUrl() is deprecated and will be removed in Sails v1.0. See http://sailsjs.org/documentation/reference/application/sails-getbaseurl for more info.');
return this._getBaseUrl();
};
Sails.prototype.getBaseURL = Sails.prototype.getBaseurl;
Sails.prototype.getBaseUrl = Sails.prototype.getBaseurl;


Sails.prototype.getRouteFor = require('./get-route-for');
Sails.prototype.getUrlFor = require('./get-url-for');

Expand Down Expand Up @@ -139,6 +131,8 @@ Sails.prototype.del = Sails.prototype['delete'] = function(path, action) {
// Private methods:
////////////////////////////////////////////////////////

Sails.prototype._getBaseUrl = require('./private/getBaseUrl');

Sails.prototype.initialize = require('./private/initialize');
Sails.prototype.exposeGlobals = require('./private/exposeGlobals');
Sails.prototype.runBootstrap = require('./private/bootstrap');
Expand Down
File renamed without changes.

0 comments on commit d0fe4ff

Please sign in to comment.