From 1442af3ea4e75d6fb06f9794d79b978cf264a5a7 Mon Sep 17 00:00:00 2001 From: Chunting Gu Date: Fri, 24 Aug 2018 17:11:48 +0800 Subject: [PATCH] Fix typos of README. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e757941..8dfdde1 100644 --- a/README.md +++ b/README.md @@ -62,10 +62,11 @@ As you can see, all you have to do is to override the proper virtual functions w The detailed implementation is out of the scope of this document, but here is an example: ```cpp -bool BookDetailService::Get(const std::vector& url_sub_matches, +void BookDetailService::Get(const std::vector& url_sub_matches, const webcc::UrlQuery& query, webcc::RestResponse* response) { if (url_sub_matches.size() != 1) { + // Invalid URL. response->status = webcc::HttpStatus::kBadRequest; return; } @@ -95,7 +96,7 @@ server.Bind(std::make_shared(), "/books/(\\d+)", true); server.Run(); ``` -**Please see `example/rest_book_server` for the complete example.** +Please see `example/rest_book_server` for the complete example. ## Build Instructions