node-mock-server
Version:
File based Node REST API mock server
19 lines (17 loc) • 493 B
JavaScript
module.exports = {
restPath: './rest',
uiPath: '/',
title: 'Api mock server',
version: 1,
urlBase: 'http://localhost:3001',
urlPath: '/rest/v1',
port: 3001,
contentType: 'application/json',
accessControlExposeHeaders: 'X-Total-Count',
accessControlAllowOrigin: '*',
accessControlAllowMethods: 'GET, POST, PUT, OPTIONS, DELETE, PATCH, HEAD',
accessControlAllowHeaders: 'origin, x-requested-with, content-type',
accessControlAllowCredentials: 'true',
headers: {},
open: true,
};