Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic controllers discovery #35

Closed
electrotype opened this issue Jan 5, 2017 · 3 comments
Closed

Automatic controllers discovery #35

electrotype opened this issue Jan 5, 2017 · 3 comments

Comments

@electrotype
Copy link

Hi Luke, we spoke by email some days ago! I started my tests with Tsoa and, so far, it works pretty well! I'm currently doing a first POC using Express. I'm going to have some questions and I'll ask them as issues, if you don't mind!

First, I think it would be nice to not have to reference the controllers in order for Tsoa to discover them... Maybe a "controllerBase" config could be used and, any @Route() decorated class found in files under this base could be automatically found? Is this something that can be done?

@lukeautry
Copy link
Owner

Yes, I think that could be done. Forcing the manual imports was just sort of a quick and easy way. I'll think on it; implementing it wouldn't be too hard, I think.

@lukeautry
Copy link
Owner

Declining to implement this for now.

@joni7777
Copy link
Contributor

Implemeneted a POC in the PR: #396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants