Features
Docs
CLI
Benchmarks
Examples
GitHub

© 2024 MoroJs

@morojs/moro


@morojs/moro / IntelligentRoutingManager

Class: IntelligentRoutingManager

Defined in: src/core/routing/app-integration.ts:66

Implements

  • IntelligentApp

Constructors

Constructor

new IntelligentRoutingManager(): IntelligentRoutingManager

Returns

IntelligentRoutingManager

Methods

delete()

delete(path): RouteBuilder

Defined in: src/core/routing/app-integration.ts:82

Parameters

path

string

Returns

RouteBuilder

Implementation of

IntelligentApp.delete


directRoute()

directRoute(method, path, handler, options?): void

Defined in: src/core/routing/app-integration.ts:130

Parameters

method

string

path

string

handler

Function

options?

any

Returns

void

Implementation of

IntelligentApp.directRoute


get()

get(path): RouteBuilder

Defined in: src/core/routing/app-integration.ts:70

Parameters

path

string

Returns

RouteBuilder

Implementation of

IntelligentApp.get


getIntelligentRoutes()

getIntelligentRoutes(): CompiledRoute[]

Defined in: src/core/routing/app-integration.ts:117

Returns

CompiledRoute[]


handleIntelligentRoute()

handleIntelligentRoute(req, res): Promise<boolean>

Defined in: src/core/routing/app-integration.ts:112

Parameters

req

HttpRequest

res

HttpResponse

Returns

Promise<boolean>


head()

head(path): RouteBuilder

Defined in: src/core/routing/app-integration.ts:90

Parameters

path

string

Returns

RouteBuilder

Implementation of

IntelligentApp.head


options()

options(path): RouteBuilder

Defined in: src/core/routing/app-integration.ts:94

Parameters

path

string

Returns

RouteBuilder

Implementation of

IntelligentApp.options


patch()

patch(path): RouteBuilder

Defined in: src/core/routing/app-integration.ts:86

Parameters

path

string

Returns

RouteBuilder

Implementation of

IntelligentApp.patch


post()

post(path): RouteBuilder

Defined in: src/core/routing/app-integration.ts:74

Parameters

path

string

Returns

RouteBuilder

Implementation of

IntelligentApp.post


put()

put(path): RouteBuilder

Defined in: src/core/routing/app-integration.ts:78

Parameters

path

string

Returns

RouteBuilder

Implementation of

IntelligentApp.put


register()

register(_route): void

Defined in: src/core/routing/app-integration.ts:106

Parameters

_route

CompiledRoute

Returns

void

Implementation of

IntelligentApp.register


route()

route(schema): CompiledRoute

Defined in: src/core/routing/app-integration.ts:99

Parameters

schema

RouteSchema

Returns

CompiledRoute

Implementation of

IntelligentApp.route