"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.initMiddlewares = void 0;
// import { LicenseChecker } from './license-checker'
const env_1 = require("@things-factory/env");
const operato_license_checker_1 = require("@things-factory/operato-license-checker");
function initMiddlewares(app) {
    app.use(async (context, next) => {
        await (0, operato_license_checker_1.checkValidity)(context, next, env_1.config, env_1.logger);
    });
}
exports.initMiddlewares = initMiddlewares;
//# sourceMappingURL=index.js.map