From 531dccae7c86f7c2be9204fb6707e03d55e4cc8a Mon Sep 17 00:00:00 2001 From: pikann Date: Thu, 14 May 2026 17:23:27 +0700 Subject: [PATCH] docs: update README to clarify route-level host middleware configuration --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 085e2fd..cd2b615 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,10 @@ The bridge between your plugin and the Paca host. Available via `Init(ctx)`: - `ctx.Route(method, path, handler)` — register an HTTP endpoint - `ctx.On(event, handler)` — subscribe to a core platform event +Route-level host middleware (for example `authn`, `requireFreshPassword`, +`requirePermissions`) is configured in `plugin.json` under +`backend.routes[].middlewares`. + ### `DB` Typed SQL execution. The host enforces row-level scoping; you can only see data for the project where the plugin is enabled. - `db.Query(sql, args...)` — execute a read query; returns `[]map[string]any`