Class controllers #138
-
how about if we use class controllers instead of just sample methods, |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
@muttaqin1 I found a nice package to help us with this |
Beta Was this translation helpful? Give feedback.
It's very interesting. Lets implement this.
@bellaabdelouahab