UNPKG

tsoa-custom-decorators

Version:

Build swagger-compliant REST APIs using TypeScript and Node

10 lines (7 loc) 408 B
import { Container } from 'inversify'; import { ManagedController } from './managedController'; import { ManagedService } from './managedService'; const iocContainer = new Container(); iocContainer.bind<ManagedService>(ManagedService).to(ManagedService).inSingletonScope(); iocContainer.bind<ManagedController>(ManagedController).to(ManagedController).inSingletonScope(); export { iocContainer };