route_create
Route a path prefix, such as /api, to a Service of the Environment.
| Access | Changes Blossom |
| Same as | blossom route:create |
Arguments
| Argument | Type | Description |
|---|---|---|
data |
object | The route. Required. |
data.environment_id |
string | Environment id. |
data.service_id |
string | Service it sends to. |
data.path |
string | Path prefix, such as /api. |
Example
{"data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}