|
|
|
|
|
by umvi
2655 days ago
|
|
I like it, but the API for defining HTTP endpoints seems messy compared to, say, Flask or ExpressJS. Is there any particular reason it is done this way vs something syntactically cleaner, like: app.get("/test", [](drogon::Request & req, drogon::Response & res) {
// Business Logic Goes Here?
});
I'm going to be honest, I'm turned off by the macros and general API style of endpoint definition. I know, I know...> Don't be scared by the code. I can't help it! |
|
Of course, for very simple logic, the interface you are talking about is really more intuitive, I will consider adding such an interface. Thank you for your comment.