1.0.2 • Published 8 years ago
create-endpoints v1.0.2
create-endpoints
Create Express API endpoints Quickly
Requirements: models folder and routes.js file in the root of the project
Setup
npm install --save create-endpointsOr
yarn add create-endpointsThen
In your package.json
"scripts": {
"new-endpoints": "create-endpoints"
}Make Endpoints
Warning: endpoints are VERY case-sensitive
npm run new-endpoints yourEndpointNameIn your routes.js file you should see four new API endpoints
In the models folder you will find a file with the name of your endpoint. Inside are models of the endpoints.