2016-05-04 00:10:46 +00:00
|
|
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
|
|
|
// Node module: loopback
|
|
|
|
// This file is licensed under the MIT License.
|
|
|
|
// License text available at https://opensource.org/licenses/MIT
|
|
|
|
|
2016-07-28 14:36:23 +00:00
|
|
|
var deprecated = require('depd')('loopback');
|
2016-08-10 10:40:38 +00:00
|
|
|
var g = require('strong-globalize')();
|
2016-07-28 14:36:23 +00:00
|
|
|
var perRequestContext = require('loopback-context').perRequest;
|
|
|
|
|
|
|
|
module.exports = function() {
|
2016-08-10 10:40:38 +00:00
|
|
|
deprecated(g.f('%s middleware is deprecated. See %s for more details.',
|
|
|
|
'loopback#context',
|
|
|
|
'https://docs.strongloop.com/display/APIC/Using%20current%20context'));
|
2016-07-28 14:36:23 +00:00
|
|
|
return perRequestContext.apply(this, arguments);
|
|
|
|
};
|