Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Loading