Changed examples to use the generic lambda.
This commit is contained in:
parent
98e3e7b3c1
commit
34e5903167
4 changed files with 12 additions and 12 deletions
|
@ -12,7 +12,7 @@ int main(void)
|
|||
{
|
||||
Server svr;
|
||||
|
||||
svr.get("/hi", [](const Request& req, Response& res) {
|
||||
svr.get("/hi", [](const auto& req, auto& res) {
|
||||
res.set_content("Hello World!", "text/plain");
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue