generated from Sithas/conan_template
TASK00 - Стабилизация бэкенда
This commit is contained in:
@@ -15,6 +15,7 @@ find_package(Boost REQUIRED)
|
||||
|
||||
add_executable(App ./src/main.cpp
|
||||
./src/helpers/helpers.h
|
||||
./src/helpers/helpers.cpp
|
||||
./src/endpoints_handlers/HandleRequest.h
|
||||
./src/session/HttpSession.h
|
||||
./src/session/HttpSession.cpp
|
||||
|
||||
@@ -47,6 +47,8 @@ void HandleRequest(
|
||||
return res;
|
||||
};
|
||||
|
||||
// /v1/api/MyOwnUrl?query=123 // посмотреть парсер url'ов
|
||||
|
||||
if (req.method() != boost::beast::http::verb::get &&
|
||||
req.method() != boost::beast::http::verb::head)
|
||||
return send(bad_request("Unknown boost::beast::HTTP-method"));
|
||||
|
||||
Reference in New Issue
Block a user