Skip to content

matjs/mat-rap-verify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mat-rap-verify

npm version

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

Releases

No releases published

Packages

No packages published