@morojs/moro


@morojs/moro / RouteSchema

Interface: RouteSchema

Defined in: src/core/routing/index.ts:67

Properties

auth?

optional auth?: AuthConfig

Defined in: src/core/routing/index.ts:73


cache?

optional cache?: CacheConfig

Defined in: src/core/routing/index.ts:75


description?

optional description?: string

Defined in: src/core/routing/index.ts:77


handler

handler: StaticBody | ParamEcho | RouteHandler<any>

Defined in: src/core/routing/index.ts:71

A function, the response body itself (StaticBody), or param(name)


method

method: HttpMethod

Defined in: src/core/routing/index.ts:68


middleware?

optional middleware?: MiddlewarePhases

Defined in: src/core/routing/index.ts:76


paramEcho?

optional paramEcho?: ParamRouteReply

Defined in: src/core/routing/index.ts:82

Engine shape of a param(name) handler; see ParamRouteReply


path

path: string

Defined in: src/core/routing/index.ts:69


rateLimit?

optional rateLimit?: RateLimitConfig

Defined in: src/core/routing/index.ts:74


static?

optional static?: StaticResponse

Defined in: src/core/routing/index.ts:80

Fixed reply of a literal handler; see StaticResponse


tags?

optional tags?: string[]

Defined in: src/core/routing/index.ts:78


validation?

optional validation?: ValidationConfig

Defined in: src/core/routing/index.ts:72