跳到主要内容
版本:Next

RouterInfo

Index

Properties

optionalcontrollerClz

controllerClz?: new (...args: any[]) => any

optionalcontrollerId

controllerId?: string

controller provideId

optionalcontrollerMiddleware

controllerMiddleware?: any[]

controller middleware in this router

optionaldescription

description?: string

router description

optionalfullUrl

fullUrl?: string

url with prefix

optionalfullUrlCompiledRegexp

fullUrlCompiledRegexp?: RegExp

pattern after path-regexp compile

optionalfullUrlFlattenString

fullUrlFlattenString?: string

url after wildcard and can be path-to-regexp by path-to-regexp v6

optionalfuncHandlerName

funcHandlerName?: string

serverless func load key, will be override by

@ServerlessTrigger

and

@ServerlessFunction

optionalfunctionMetadata

functionMetadata?: any

serverless function metadata

optionalfunctionName

functionName?: string

serverless function name, will be override by

@ServerlessTrigger

and

@ServerlessFunction

optionalfunctionTriggerMetadata

functionTriggerMetadata?: any

serverless function trigger metadata

optionalfunctionTriggerName

functionTriggerName?: string

serverless trigger name

optionalhandlerName

handlerName?: string

router handler function key,for IoC container load

optionalid

id?: string

uuid

method

method: string | (...args: any[]) => void

invoke function method

optionalmiddleware

middleware?: any[]

router middleware

optionalprefix

prefix?: string

router prefix from controller

optionalrequestMetadata

requestMetadata?: any[]

request args metadata

requestMethod

requestMethod: string

request method for http, like get/post/delete

optionalresponseMetadata

responseMetadata?: any[]

response data metadata

optionalrouterName

routerName?: string

router alias name

optionalsummary

summary?: string
@deprecated

url

url: string | RegExp

router path, without prefix