// import { LicenseChecker } from './license-checker'
import { config, logger } from '@things-factory/env'
import { checkValidity } from '@things-factory/operato-license-checker'

export function initMiddlewares(app) {
  app.use(async (context, next) => {
    await checkValidity(context, next, config, logger)
  })
}
