You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Their code will detect whether classes or a string is passed. If a string is passed, then the values are passed to importClassesFromDirectories where it imports all the classes in the directory.
When the same configuration is passed to routingControllersToSpec it fails to find any controllers unless I implement the importClassesFromDirectories outside of the library and pass the return values to routingControllersToSpec.
In the current release of
routing-controllers
it allows you to define the controllers like this,useExpressServer(app, { controllers: ['./controller/**/*.ts'] })
Their code will detect whether classes or a string is passed. If a string is passed, then the values are passed to
importClassesFromDirectories
where it imports all the classes in the directory.When the same configuration is passed to
routingControllersToSpec
it fails to find any controllers unless I implement theimportClassesFromDirectories
outside of the library and pass the return values to routingControllersToSpec.Here's a link in their code where they add this logic,
https://github.com/typestack/routing-controllers/blob/develop/src/index.ts#L161
The text was updated successfully, but these errors were encountered: