Docs
Middleware
Provided Middlewares

Provided Middlewares

UNDER DEVELOPMENT

The middleware below is still under development. If the middleware becomes stable in the future, it will be merged into the core module.

#Usage

Add the middleware to the options.middlewares array in the config file.

#Parse Body

This middleware parses the body received from the request and provides it with a context.

Typescript
import { defineConfig } from '@zely-js/zely';
import { bodyMiddleware } from '@zely-js/zely/middlewares';
 
export default defineConfig({
  middlewares: [bodyMiddleware],
});