The think.middleware.base
class inherit from think.http.base。
export default class extends think.middleware.base {
run(){
}
}
module.exports = think.middleware({
run: function(){
}
})
return
{Promise}middleware exported entrance, invoke this function when calling middleware.