Skip to content

Function: attachRoutePatchMiddleware()

attachRoutePatchMiddleware(app): void

Keep Mastra custom API routes mount-relative when the Express subapp is hosted under AppKit’s /api/<plugin> path.

Express

void