Guides
TBD: we might write guides like this?
-
Define a helper method a typescript or javascript
collections/example/helper.ts export async function authFor(env: string) {return `auth-for-${env}`;} -
import the helper method and call it.
collections/example/products.https import:./helper.ts:- authFor>>>POST https://example.com/productsAuthorization: {{ @auth = authFor(env) }}