scorper routes #32
Replies: 3 comments
-
pragma style is mostly inspired from python's frameworks , the benefit is when you starting programming , let's say apis, you implement the interface oh, I forget pragma style still need add proc to router manually , maybe in the future I can load all routes by specify the module name. |
Beta Was this translation helpful? Give feedback.
-
PR |
Beta Was this translation helpful? Give feedback.
-
starting from v1.0.20, routermacros added |
Beta Was this translation helpful? Give feedback.
-
I think it is interesting how you can define routes/handlers in (at least) two ways. Just wondering when someone might choose one over the other? Does having two options provide a benefit or create overhead when designing application? Wondering what others think.
I tend to favour the first form, but probably only because it seems more familiar.
or
Beta Was this translation helpful? Give feedback.
All reactions