Update README.md
This commit is contained in:
parent
06da245cd6
commit
34ebd7ef58
|
@ -93,7 +93,7 @@ void TestCtrl::asyncHandleHttpRequest(const HttpRequestPtr& req,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Don't be scared by the code. Most of the above programs can be automatically generated by the command line tool `drogon_ctl` provided by drogon**. All the user needs to do is add their own business logic. In the example, the controller returns a `Hello, world!` string when the client accesses the `http://ip/test` URL.
|
**Don't be scared by the code, most of the above programs can be automatically generated by the command line tool `drogon_ctl` provided by drogon**. All the user needs to do is add their own business logic. In the example, the controller returns a `Hello, world!` string when the client accesses the `http://ip/test` URL.
|
||||||
|
|
||||||
For JSON format response, we create the controller as follows:
|
For JSON format response, we create the controller as follows:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue