think-router-rest

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i think-router-rest

Weekly Downloads

350

Version

1.0.5

License

MIT

Unpacked Size

5.7 kB

Total Files

7

Last publish

Collaborators

  • berwin
  • bezos
  • huangxiaolu
  • lizheming
  • lushijie
  • sijiecai
  • toxicjohann
  • welefen