Flyn
Flyn is a multi framework package that makes easier to create routes for controllers.
Install
NPM
- Use:
require('flyn')
- Install:
npm install --save flyn
YARN
- Use:
require('flyn')
- Install:
yarn add flyn
Usage
Example
const app =appapp
Endpoint file example
// ./routes/GET.status.js /* FILE PATH === './routes/GET.status.js' METHOD === 'GET' URL === '/status'*/ module { return res}
Another endpoint file example
// ./routes/entities/POST.user.js /* FILE PATH === './routes/entities/POST.user.js' METHOD === 'POST' URL === '/entities/user'*/ module { console return res}
Compatibility
Now
- Express
- Fastify
- Hapi
Soon
- Koa
- NestJs
License
Licensed under permissive MIT license