1.0.5 • Published 4 years ago

think-router-rest v1.0.5

Weekly downloads
88
License
MIT
Repository
github
Last release
4 years ago

think-router-rest

npm Travis Coveralls David

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!

License

MIT