app/setup/plugins/styleguide.axios-mock.js
/**
   * Defines API mocks for development and styleguide build
   */
Defines API mocks for development and styleguide build
Defines API mocks for development and styleguide build
install() {
    const mock = new MockAdapter(axios, {
      delayResponse: 400,
    });
    mock
      .onGet('/suggestions').reply(200, cSuggestions)
      .onAny(/\/?static/).passThrough()
      .onAny().reply(wildcard);
  }
install ( ) { const mock = new MockAdapter ( axios , { delayResponse : 400 , } ) ; mock . onGet ( '/suggestions' ) . reply ( 200 , cSuggestions ) . onAny ( / \/?static / ) . passThrough ( ) . onAny ( ) . reply ( wildcard ) ; }
Defines API mocks for development and styleguide build
Defines API mocks for development and styleguide build
/* Vue, options */ // See https://github.com/ctimmerm/axios-mock-adapter