Properties
Protected baseRoute
baseRoute: Router
Methods
addRoute
- addRoute(method: "get" | "post" | "delete" | "put", path: string, handler: (req: ProvisioningRequest<Record<string, unknown>, Record<string, unknown>>, res: Response<any, Record<string, any>>, next?: NextFunction) => void | Promise<void>, fnName?: string): void
Parameters
method: "get" | "post" | "delete" | "put"
path: string
handler: (req: ProvisioningRequest<Record<string, unknown>, Record<string, unknown>>, res: Response<any, Record<string, any>>, next?: NextFunction) => void | Promise<void>
- (req: ProvisioningRequest<Record<string, unknown>, Record<string, unknown>>, res: Response<any, Record<string, any>>, next?: NextFunction): void | Promise<void>
Parameters
req: ProvisioningRequest<Record<string, unknown>, Record<string, unknown>>
res: Response<any, Record<string, any>>
Optional next: NextFunction
Returns void | Promise<void>
Optional fnName: string
Returns void
start
- start(port: number, hostname?: string, backlog?: number): Promise<void>
Parameters
port: number
hostname: string = "0.0.0.0"
backlog: number = 10
Returns Promise<void>
The provisioning API serves two classes of clients: