feat(auth): add per-feature InversifyJS container with constructor-injected service
This commit is contained in:
6
packages/auth/src/di/container.ts
Normal file
6
packages/auth/src/di/container.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import "reflect-metadata";
|
||||
import { Container } from "inversify";
|
||||
import { AuthModule } from "./module";
|
||||
|
||||
export const authContainer = new Container({ defaultScope: "Singleton" });
|
||||
authContainer.load(AuthModule);
|
||||
Reference in New Issue
Block a user