mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-01 13:20:38 +00:00
Fixed documentation.
This commit is contained in:
1 parent
de645fffc0
commit
6120367290
1 file changed
+1
-1
@@ -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");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user