Autoload repositories as required
This commit is contained in:
parent
afec88082b
commit
15a5bf9d03
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,9 @@ c.register({
|
||||||
database: a.asFunction(database_init).singleton(),
|
database: a.asFunction(database_init).singleton(),
|
||||||
TTNAppServer: a.asClass(TTNAppServer),
|
TTNAppServer: a.asClass(TTNAppServer),
|
||||||
});
|
});
|
||||||
c.loadModules(
|
c.loadModules("../Repos.SQLite/*.mjs", {
|
||||||
|
register: a.asClass,
|
||||||
|
lifetime: a.Lifetime.SINGLETON
|
||||||
|
});
|
||||||
|
|
||||||
export default c;
|
export default c;
|
||||||
|
|
Loading…
Reference in a new issue