lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.6k stars 504 forks source link

Support dependency injection for controllers #49

Closed andreasrueedlinger closed 7 years ago

andreasrueedlinger commented 7 years ago

As discussed already here and here it would be very convenient that the default templates support controllers managed by a DI-framework like inversifyJS. I added a PR to solve the problem by adding the relative path to the IOC-module exporting the kernel in the tsoa.json.

lukeautry commented 7 years ago

@andreasrueedlinger This is live in 1.0.15. Thanks again!