Skip to content

Macros

Macro is a mechanism to inject code into Mapl middleware phase.

app.inline((result, state) => {
// Inject code
});

You can see the type definition in middleware.ts and an example of a request body parser in parseBody.ts.