Wondering what’s next for npm?Check out our public roadmap! »

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

Install

npm i think-router-rest

DownloadsWeekly Downloads

236

Version

1.0.5

License

MIT

Unpacked Size

5.7 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar