Update README

This commit is contained in:
antao 2019-03-19 18:26:09 +08:00
parent f8c5a73c6b
commit 1a5845d06c

View File

@ -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:
@ -160,4 +160,4 @@ class User : public drogon::HttpController<User>
As you can see, users can use the `HttpController` to map paths and parameters at the same time. This is a very convenient way to create a RESTful API application.
After compiling all of the above source files, we get a very simple web application. This is a good start. for more information, please visit the **[wiki](https://github.com/an-tao/drogon/wiki)** site
After compiling all of the above source files, we get a very simple web application. This is a good start. **for more information, please visit the [wiki](https://github.com/an-tao/drogon/wiki) site**