1.0.5 • Published 4 years ago
think-router-rest v1.0.5
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!