TypeScript API / contentia/storage/api / buildJsonApi
Function: buildJsonApi()
ts
function buildJsonApi(options): object;Build a JSON:API handler for the storage repository.
⚠️ This handler ships no authentication. Wrap it before exposing it to an untrusted network.
Parameters
| Parameter | Type |
|---|---|
options | StorageApiOptions |
Returns
object
fetch()
ts
fetch(request): Promise<Response>;Parameters
| Parameter | Type |
|---|---|
request | Request |
Returns
Promise<Response>