Home Reference Source
public class | source

NodeAPIRouter

You can directly use an instance of this class. nodeAPIRouter

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

_routes: *[]

private

Method Summary

Public Methods
public

initializeRouter(app: *, middleWare: *, prefix: string, nodeApiType: *)

public

initializeRouterCallbacks(app: *, middleWare: *, prefix: string, nodeApiType: *)

public

showRoutes(): *

Private Methods
private

_addRoute(route: *, callback: *, nodeApiType: *, maxWeight: *, app: *, prefix: *, middleWare: *)

Public Constructors

public constructor() source

Private Members

private _routes: *[] source

private _routesEnabled: boolean source

Public Methods

public initializeRouter(app: *, middleWare: *, prefix: string, nodeApiType: *) source

Params:

NameTypeAttributeDescription
app *
middleWare *
prefix string
  • optional
  • default:
nodeApiType *

public initializeRouterCallbacks(app: *, middleWare: *, prefix: string, nodeApiType: *) source

Params:

NameTypeAttributeDescription
app *
middleWare *
prefix string
  • optional
  • default:
nodeApiType *

public showRoutes(): * source

Return:

*

Private Methods

private _addRoute(route: *, callback: *, nodeApiType: *, maxWeight: *, app: *, prefix: *, middleWare: *) source

Params:

NameTypeAttributeDescription
route *
callback *
nodeApiType *
maxWeight *
app *
prefix *
middleWare *