Handlers

Internal Route Handlers

The Zuplo Runtime automatically registers certain routes on your gateway to provide enhanced functionality. Requests to these routes may appear in your project's analytics under the Observability tab. Below is a list of reserved routes:

NameMethodPathDescription
cors-preflightOPTIONS/(.*)Handles CORS preflight requests.
developer-portalGETUser configured, default: /docsHandles serving the legacy Developer Portal.
developer-portal-legacyGET/__zuplo/dev-portalLegacy path for the Developer Portal.
pingGET/__zuplo/pingUsed to check liveness of deployments.
unmatched-pathAll/(.*)Handles requests to endpoints that haven't been configured.

Behavior Details

cors-preflight

This handler automatically responds to CORS preflight (OPTIONS) requests based on the CORS policy configured for each route. It runs before any user-defined route handlers.

ping

The /__zuplo/ping endpoint returns a simple response that indicates the deployment is live and accepting requests. Use this endpoint for health checks and uptime monitoring.

unmatched-path

When a request does not match any configured route, this handler returns a 404 Not Found response. It acts as a catch-all for undefined paths.

Internal routes are reserved by the Zuplo runtime.

Last modified on