说明:节点API模板
验证
Bearer Header
authenticate -验证JWT
用法
没有身份验证中间件
// typescr ipt
app . get ( '' , async ( req : Request , res : Response ) => {
// handle request here...
} ) ;
使用身份验证中间件
// typescr ipt
import { authenticate } from './AuthController' ;
ap
<weixin_42129113> 上传 | 大小:89kb