Options
All
  • Public
  • Public/Protected
  • All
Menu

Matches all requests and returns the same response every time. Default behaviour is to return a 404 response.

Hierarchy

  • DefaultRoute

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new DefaultRoute(statusCode?: number, message?: string): DefaultRoute
  • Parameters

    • Default value statusCode: number = httpStatusCode.clientError.NOT_FOUND
    • Default value message: string = "Resource not found. There are no matching paths. Check the API documentation."

    Returns DefaultRoute

Properties

message

message: string

statusCode

statusCode: number

Methods

handle

matches

Generated using TypeDoc