HttpBase: Route & { METHOD: HttpMethod; ROUTE_URL: string }

Represents a base HTTP route.

Type declaration

  • METHOD: HttpMethod

    The HTTP method used by the route (e.g., GET, POST).

  • ROUTE_URL: string

    The URL path of the route.

import { HttpBase } from "./httpBase.js";
export class MyRoute extends HttpBase {
METHOD = "GET";
ROUTE_URL = "/my-route";