@twin.org/api-tenant-processor
Version:
API Tenant Processor for converting and api key to a tenant id.
11 lines • 415 B
JavaScript
// Copyright 2025 IOTA Stiftung.
// SPDX-License-Identifier: Apache-2.0.
import { EntitySchemaFactory, EntitySchemaHelper } from "@twin.org/entity";
import { Tenant } from "./entities/tenant.js";
/**
* Initialize the schema for the node tenant processor.
*/
export function initSchema() {
EntitySchemaFactory.register("Tenant", () => EntitySchemaHelper.getSchema(Tenant));
}
//# sourceMappingURL=schema.js.map