Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Router

Manage Route resolution

Hierarchy

  • Router

Constructors

Properties

initiated: boolean = false
pathMap: object[]
routes: Map<string, RouteInfo[]> = new Map()
webda: Core

Methods

  • addRoute(url: string, info: RouteInfo): void
  • comparePath(a: any, b: any): number
  • completeOpenAPI(openapi: Document, skipHidden?: boolean): void
  • Add all known routes to paths

    Parameters

    • openapi: Document

      to complete

    • Default value skipHidden: boolean = true

      add hidden routes or not

    Returns void

  • remapRoutes(): void
  • removeRoute(url: any): void

Generated using TypeDoc