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
  • URL: https://api.volcano.dev/projects/{id}/frontends/{frontendId}/function-routes
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

function_idstring uuid required
path_prefixstring required
strip_prefixboolean

Response

Function route created

idstring uuid required
project_idstring uuid required
frontend_idstring uuid required
function_idstring uuid required
path_prefixstring required
strip_prefixboolean required
created_atstring date-time required
updated_atstring date-time required

Changes