Type Alias DataRoute
DataRoute: RouteCommon & QueryRoute & FamilyRoute & {
contentType?: string;
origin?: string;
strategy: "data";
}
contentType?: string;
origin?: string;
strategy: "data";
}
Type Declaration
-
OptionalcontentType?: stringthe content type of the local answer; default
application/json -
Optionalorigin?: stringthe API origin a cross-origin family answers for; absent for the page's own origin. A public route answers from the public replica. A principal route (
scopeorauth) answers only a GET with anAuthorizationheader, only from the signed-in partition, and stops when the partition is wiped; every other request goes to the API. -
strategy: "data"
answers a GET with the stored JSON
A route for a JSON read. The worker answers a GET (not a navigation) from the stored value with
JSON.stringify, so the application's own handler has to return the same JSONloaddoes. Withfamilythe answer is the held row; withoriginthe GET may come from that other origin, andquery.datasetwithout afamilymakes the collection of the dataset.