Skip to content

thinkjs/think-router-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Let think-router recognize REST router easily without custom router.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published