Class controllers #138
|
how about if we use class controllers instead of just sample methods, |
Replies: 2 comments 1 reply
Yes, Class-based controllers provide a more structured way to define routes and request handlers. We can inject dependencies into controller classes. Since we are using typescript we can use decorators to add extra functionality to our class methods. |
|
@muttaqin1 I found a nice package to help us with this |
It's very interesting. Lets implement this.
@bellaabdelouahab