Frontends
Route a Frontend path to an HTTP Function
Changed onThe Frontend and Function must belong to this Project. The Function must be a standard Function with visibility: public and HTTP invocation mode, because requests through the route carry no credential: Volcano does not check a token sent to a route path or add __volcano_auth, so the Function authenticates its callers itself. A Function cannot leave public while a route targets it. The route applies to every hostname that resolves to the Frontend, including generated, custom-domain, preview, and local hostnames.
post/projects/{id}/frontends/{frontendId}/function-routes
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
id, string uuid required
Project ID
frontendId, string uuid required
Frontend ID
Request body
Create Frontend Function Route Request required
function_id, string uuid required
path_prefix, string required
strip_prefix, boolean
Response
Function route created
Frontend Function Route required
id, string uuid required
project_id, string uuid required
frontend_id, string uuid required
function_id, string uuid required
path_prefix, string required
strip_prefix, boolean required
created_at, string date-time required
updated_at, string date-time required
Changes
- info
endpoint added
- info