Changed examples to use the generic lambda.

This commit is contained in:
yhirose 2014-07-11 21:51:49 -04:00
parent 98e3e7b3c1
commit 34e5903167
4 changed files with 12 additions and 12 deletions

View file

@ -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");
});