We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ccea6 commit 531dccaCopy full SHA for 531dcca
1 file changed
README.md
@@ -80,6 +80,10 @@ The bridge between your plugin and the Paca host. Available via `Init(ctx)`:
80
- `ctx.Route(method, path, handler)` — register an HTTP endpoint
81
- `ctx.On(event, handler)` — subscribe to a core platform event
82
83
+Route-level host middleware (for example `authn`, `requireFreshPassword`,
84
+`requirePermissions`) is configured in `plugin.json` under
85
+`backend.routes[].middlewares`.
86
+
87
### `DB`
88
Typed SQL execution. The host enforces row-level scoping; you can only see data for the project where the plugin is enabled.
89
- `db.Query(sql, args...)` — execute a read query; returns `[]map[string]any`
0 commit comments