1.0.4 • Published 7 years ago

gap-node-mock v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago