@morojs/moro / RouteSchema
Interface: RouteSchema
Defined in: src/core/routing/index.ts:67
Properties
auth?
optionalauth?:AuthConfig
Defined in: src/core/routing/index.ts:73
cache?
optionalcache?:CacheConfig
Defined in: src/core/routing/index.ts:75
description?
optionaldescription?: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?
optionalmiddleware?:MiddlewarePhases
Defined in: src/core/routing/index.ts:76
paramEcho?
optionalparamEcho?: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?
optionalrateLimit?:RateLimitConfig
Defined in: src/core/routing/index.ts:74
static?
optionalstatic?:StaticResponse
Defined in: src/core/routing/index.ts:80
Fixed reply of a literal handler; see StaticResponse
tags?
optionaltags?:string[]
Defined in: src/core/routing/index.ts:78
validation?
optionalvalidation?:ValidationConfig
Defined in: src/core/routing/index.ts:72