Update README
This commit is contained in:
parent
f8c5a73c6b
commit
1a5845d06c
|
@ -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**
|
||||
|
|
Loading…
Reference in New Issue