1.0.4 • Published 6 years ago

gap-node-mock v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

gap-node-mock

install

yarn add gap-node-mock --save-dev

use

const mockMiddleware = require('gap-node-mock);
const express = require('express');

const app = express();

app.use('/', mockMiddleware({mockDir: xxx});

app.listen(port);

Get start

1. create a directory(in your own project directory) to place your routers and data

structure

2. edit your route files

/

or

/hr/xxx

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago