think-router-rest
v1.0.5
Published
Let think-router recognize REST router easily without custom router.
Downloads
2,303
Readme
think-router-rest
Let think-router recognize REST router easily without custom router for ThinkJS 3.x.
Installation
npm install think-router-rest --save
How To Use
append this middleware in src/config/middleware.js
:
const router = require('think-router');
const routerREST = require('think-router-rest');
module.exports = [
{handle: router, options: {}},
{handle: routerREST, options: {}}
];
Contributing
Contributions welcome!