Browse Source

Autoload repositories as required

master
Starbeamrainbowlabs 3 years ago
parent
commit
15a5bf9d03
  1. 5
      server/bootstrap/container.mjs

5
server/bootstrap/container.mjs

@ -13,6 +13,9 @@ c.register({ @@ -13,6 +13,9 @@ c.register({
database: a.asFunction(database_init).singleton(),
TTNAppServer: a.asClass(TTNAppServer),
});
c.loadModules(
c.loadModules("../Repos.SQLite/*.mjs", {
register: a.asClass,
lifetime: a.Lifetime.SINGLETON
});
export default c;

Loading…
Cancel
Save