mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Fixed documentation.
This commit is contained in:
parent
de645fffc0
commit
6120367290
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ int main(void)
|
|||
res.set_content("Hello World!", "text/plain");
|
||||
});
|
||||
|
||||
svr_.get("/numbers/(\d+)", [&](const auto& req, auto& res) {
|
||||
svr_.get(R"(/numbers/(\d+))", [&](const auto& req, auto& res) {
|
||||
string numbers = req.matches[1];
|
||||
res.set_content(numbers, "text/plain");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue