@ashvajs/mock-server
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@ashvajs/mock-server", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "fs": "^0.0.1-security", |
# @ashvajs/mock-server | ||
[![npm](https://img.shields.io/npm/dm/@ashvajs/mock-server.svg)](https://www.npmjs.com/package/@ashvajs/mock-server) | ||
[![npm](https://img.shields.io/npm/v/@ashvajs/mock-server.svg)](https://www.npmjs.com/package/@ashvajs/mock-server) | ||
## Description | ||
@@ -12,2 +15,18 @@ Simple mock server to serve static/dynamic routes for mock api. | ||
``` | ||
mocks | ||
api | ||
v1 | ||
test | ||
post.json // serves as /api/v1/test [post method] | ||
get.json // serves as /api/v1/test [get method] | ||
delete.json // serves as /api/v1/test [delete method] | ||
patch.json // serves as /api/v1/test [patch method] | ||
dynamic // for dynamic routes | ||
post | ||
index.js | ||
get | ||
index.js | ||
``` | ||
``` | ||
import path from 'path'; | ||
@@ -14,0 +33,0 @@ import express from 'express'; |
10322
53