MoroJSoro JS
FeaturesDocsCLIBenchmarksExamplesGitHub
Features
Docs
CLI
Benchmarks
Examples
GitHub

© 2024 MoroJs

Technical

API Reference & Architecture

DocsCLITechnical
Technical DocsComplete API Index
OverviewNamespaces
OverviewAppDocumentationManagerContainerIntelligentRoutingManager
OverviewauthbodyvalidateRequest
OverviewHttpRequestHttpResponseMiddlewareContext
OverviewHandlerMiddleware
OverviewsimpleMiddleware
OverviewServiceLifecycle
GitHub RepositoryExamples RepoBenchmarksAPI Reference (GitHub)

Version: 1.0.0

Last updated: 9/12/2025

Technical
API
Functions
DefineRoute

@morojs/moro


@morojs/moro / defineRoute

Function: defineRoute()

defineRoute(schema): CompiledRoute

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

Parameters

schema

RouteSchema

Returns

CompiledRoute

Back to defineRouteView Source
MoroJS

The TypeScript-first toolkit for building ultra-fast APIs with zero-friction developer experience.

Product

  • Documentation
  • Examples
  • Playground
  • Roadmap

Community

  • GitHub
  • Discord
  • Twitter

Resources

  • Getting Started
  • API Reference
  • Migration Guide
  • Best Practices

Company

  • About
  • Careers
  • Privacy
  • Terms
© CM Ventures, Inc. Built withfor the TypeScript community.
Privacy PolicyTerms of Service
All systems operational