Should I instantiate controllers in route modules or use static methods?

📝

内容提要

I’m building a modular REST API using Node.js + Express + TypeScript. My controllers are defined as classes. In my route files, I currently create a new controller instance, like this: import {...

🏷️

标签

➡️

继续阅读