mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
13 lines
264 B
JavaScript
13 lines
264 B
JavaScript
'use strict';
|
|
|
|
const _strategies = [{ name: 'default', parameters: {} }];
|
|
|
|
|
|
module.exports = {
|
|
getStrategies: () => Promise.resolve(_strategies),
|
|
addStrategy: (strat) => _strategies.push(strat),
|
|
reset: () => {
|
|
_strategies.length = 0;
|
|
},
|
|
};
|