UNPKG

thinknode

Version:

A fast, flexible and all-in-one web framework for node.js.

17 lines (14 loc) 282 B
/** * Controller * @return */ export default class extends THINK.controller('Restful') { init(http){ super.init(http); } __before(){ echo('auth check'); //通过header传值来判定权限 //let token = this.header('token'); } }