From a3a0274d3abed754ff6ab7c2270318717f74cb12 Mon Sep 17 00:00:00 2001 From: rkamysz Date: Tue, 25 Jul 2023 13:23:14 +0200 Subject: [PATCH] update deps --- src/api/api.dependencies.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/api.dependencies.ts b/src/api/api.dependencies.ts index 478c97d..5615ef5 100644 --- a/src/api/api.dependencies.ts +++ b/src/api/api.dependencies.ts @@ -1,4 +1,4 @@ -import { Result } from '@alien-worlds/api-core'; +import { Container, Result, Route, UnknownObject } from '@alien-worlds/api-core'; import { DatabaseConfigBuilder, Dependencies } from '../common'; import { Api } from './api'; @@ -8,7 +8,11 @@ import { Api } from './api'; */ export abstract class ApiDependencies extends Dependencies { public api: Api; + public ioc: Container; public databaseConfigBuilder: DatabaseConfigBuilder; - public abstract initialize(): Promise; + public abstract initialize( + setupIoc: (config: UnknownObject, container: Container) => Promise, + routesProvider: (container: Container) => Route[] + ): Promise; }