Middleware for ThinkJS 3.x that adds automatic RESTful route recognition to think-router, eliminating the need for custom route definitions. Version 1.0.5 is the latest stable release, with no active development observed since 2018. It is specific to ThinkJS 3.x and requires think-router as a peer dependency. Compared to manual route setup, it infers routes from controller methods (e.g., GET, POST) automatically.
npm install think-router-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Adds think-router-rest middleware to ThinkJS 3.x config, enabling automatic RESTful route mapping from controller action names.
Ensure think-router is listed before think-router-rest in the middleware array.
Use with ThinkJS 3.x only.
Run: npm install think-router-rest --save