Features
Docs
CLI
Benchmarks
Examples
GitHub

© 2024 MoroJs

@morojs/moro


@morojs/moro / RouteSchema

Interface: RouteSchema

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

Properties

auth?

optional auth: AuthConfig

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


cache?

optional cache: CacheConfig

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


description?

optional description: string

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


handler

handler: RouteHandler

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


method

method: HttpMethod

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


middleware?

optional middleware: MiddlewarePhases

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


path

path: string

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


rateLimit?

optional rateLimit: RateLimitConfig

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


tags?

optional tags: string[]

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


validation?

optional validation: ValidationConfig

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