Type Alias BaseRoute

BaseRoute: {
    handler: RouterHandler;
    method: HTTPMethod;
    path: string;
}

Defines the base properties for a route.

Type declaration

  • handler: RouterHandler

    The handler function that processes the request and generates a response.

  • method: HTTPMethod

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

  • path: string

    The path for the route, e.g., "/api/users".