website refactor
This commit is contained in:
15
apps/website/lib/di/modules/analytics.module.ts
Normal file
15
apps/website/lib/di/modules/analytics.module.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ContainerModule } from 'inversify';
|
||||
import { DashboardService } from '@/lib/services/analytics/DashboardService';
|
||||
|
||||
import {
|
||||
DASHBOARD_SERVICE_TOKEN,
|
||||
} from '../tokens';
|
||||
|
||||
export const AnalyticsModule = new ContainerModule((options) => {
|
||||
const bind = options.bind;
|
||||
|
||||
// Dashboard Service - creates its own dependencies per contract
|
||||
bind<DashboardService>(DASHBOARD_SERVICE_TOKEN)
|
||||
.to(DashboardService)
|
||||
.inSingletonScope();
|
||||
});
|
||||
Reference in New Issue
Block a user