How to use mocker-api - 1 common examples

To help you get started, we’ve selected a few mocker-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uiwjs / uiw-admin / .kktrc.js View on Github external
conf.devServer.before = (app) => {
      apiMocker(app, path.resolve('./mocker/index.js'), {
        proxy: {
          // '/repos/*': 'https://api.github.com/',
        },
        changeHost: true,
      });
    };
  }

mocker-api

This is dev support mock RESTful API.

MIT
Latest version published 5 months ago

Package Health Score

64 / 100
Full package analysis

Popular mocker-api functions