mat-rap-verify
1.0.8 • Public • Published mat-rap-verify
Installation
npm install --save-dev mat-rap-verify
Usage
var mat = require('mat')
var rap = require('mat-rap')
var rapVerify = require('mat-rap-verify')
mat.url([/api\//, /api2\//])
.use(rapVerify({
projectId: matProjectId,
rapVersion: rapVersion,
isRap: true
}))
.use(rap({
rapVersion: rapVersion,
projectId: matProjectId
}))
Options
-
projectId
type: number
Rap平台对应建立的项目id
-
rapVersion
type: string
rap平台的版本,默认为1
-
isRap
type: boolean
是否为rap模式,默认为false
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads