invoke controller
npm install think-controller



Invoke controller for ThinkJS 3.x
Modify src/config/middleware.js:
``js
const controller = require('think-controller');
module.exports = [
{
handle: controller,
options: {
emptyModule: '',
emptyController: '',
preSetStatus: 200
}
}
];
`
* emptyModule {String} default module when not foundemptyController
* {String} default controller when not foundpreSetStatus
* {Number} preset http status when action existpreSetStatus` is set and action exist, it's will preset status before action invoked.
Koa set http status to 404 before request handling, and will changed when set body or status properties. when