MoroJSoro JS
DocsBenchmarksPlaygroundMigrate
GitHubGet started

Technical

API Reference & Architecture

DocsCLITechnical

Docs for @morojs/moro v1.8.0

Technical
API
Functions
Body

@morojs/moro


@morojs/moro / body

Function: body()

body<T>(schema): (handler) => (req, res) => Promise<any>

Defined in: src/core/validation/index.ts:263

Type Parameters

T

T

Parameters

schema

ValidationSchema<T>

Returns

(handler): (req, res) => Promise<any>

Parameters

handler

(req, res) => any

Returns

(req, res): Promise<any>

Parameters

req

HttpRequest

res

HttpResponse

Returns

Promise<any>

Back to bodyView Source
MoroJSoro JS

A TypeScript backend framework with its own native engine. Zero dependencies, four runtimes.

Product

DocsBenchmarksPlaygroundCLIBlog

Compare

vs ExpressMigration guidesRoadmap

Community

GitHubDiscordXExamples

Legal

PrivacyTermsAbout
© CM Ventures, Inc. Built withfor the TypeScript community.