app.js 321 B

1234567891011
  1. 'use strict';
  2. module.exports = app => {
  3. // make sure clusterAppMock position before securities
  4. const index = app.config.coreMiddleware.indexOf('securities');
  5. if (index >= 0) {
  6. app.config.coreMiddleware.splice(index, 0, 'clusterAppMock');
  7. } else {
  8. app.config.coreMiddleware.push('clusterAppMock');
  9. }
  10. };