@webfly.io/common-api

1.3.1 • Public • Published

Local link setup

cd /Users/nick/repos/common-api npm link cd /Users/nick/repos/gut/be npm link @webfly.io/common-api

//CLIENT SAMPLE IMPORT const { models, controllers, routes } = require('@webfly.io/common-api');

// Use models const { User, Organization } = models;

// Use controllers const { UserController } = controllers;

// Use routes const { userRoutes } = routes;

app.use('/users', userRoutes);

Running Init (create MVC files)

node node_modules/@webfly.io/common-api/init.js

Dependents (0)

Package Sidebar

Install

npm i @webfly.io/common-api

Weekly Downloads

12

Version

1.3.1

License

ISC

Unpacked Size

104 kB

Total Files

70

Last publish

Collaborators

  • webflyer