Mux Router

Routes public requests through an owner-scoped path. No authentication is required.

The mux route is /mux/{owner_id}/*. The remaining path is forwarded to the owner's lambda routing logic.

Path Parameters

Parameter Type Description
owner_id string Owner identifier
* path Remaining path forwarded to the owner scope

HTTP Request

1GET /mux/user_123/hello-world HTTP/1.1
2Host: api.hola.cloud

Example

1curl -X GET "https://api.hola.cloud/mux/user_123/hello-world"

Response

The response is produced by the lambda selected by the owner route.

1{
2  "body": {
3    "message": "Hello from mux",
4    "path": "/hello-world"
5  }
6}

Error Codes

Code Description
404 Owner or lambda route not found
500 Lambda execution error

Comments

Leave a comment