Frontends

Route a Frontend path to an HTTP Function

Changed on

The 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 URL
    https://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

CreateFrontendFunctionRouteRequest required
function_id, string uuid required
path_prefix, string required
strip_prefix, boolean

Response

Function route created

FrontendFunctionRoute 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