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; }