Skip to content

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 ​

ParameterType
optionsStorageApiOptions

Returns ​

object

fetch() ​

ts
fetch(request): Promise<Response>;

Parameters ​

ParameterType
requestRequest

Returns ​

Promise<Response>