Zum Inhalt springen

Handler Functions

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Handler functions give you full programmatic control over a route response. You export async functions from a yrest.handlers.js file; yRest loads them at startup and calls the matching function when the route is hit. Unlike scenarios, handlers can run any logic — counters, state, conditional branching, external calls.