Get Started
Path parameters are passed in via the third argument's params property.
Unlike with normal fetch requests, the route argument is not the URL. It should be the route string used to define the route in your server code.
Internally, Zeta's client will build the full URL, replacing any path parameters with the values provided in the input argument.
// This fetches "/users/123"
await "GET", "/users/:id", ;
For wildcard parameters, use ** or paramName for the key:
await "GET", "/users/**", ;
// Or for named wildcard parameters
await "GET", "/users/**:id", ;