Add a gateway route
portal_route_addRoute a private HTTP or file app to a stable gateway port and scope access to chosen people; same-origin protection defaults on.
Instructions
Route a private HTTP or file app on a stable gateway port. Makes the app people-scoped. HTTP MCP requires the current portal owner, checked in the write transaction. The same-origin gate defaults on. Does not invite anyone or restart the gateway node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| port | No | ||
| allow_cross_origin | No | Allow browser calls from other origins; default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| portal | Yes | ||
| routes | Yes |