Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository has been migrated. For ongoing updates, please see https://github.com/thinkjs/thinkjs/tree/master/packages/think-router-rest.

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

Stars

1 star

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages