From 4230d9ec24504d1ea3b3b17ca2fe88a6c1445d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Sat, 20 Jan 2024 12:46:22 +0300 Subject: [PATCH] extract route --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 99de924..877d1ee 100644 --- a/main.cpp +++ b/main.cpp @@ -46,7 +46,8 @@ StringResponse MakeStringResponse(http::status status, StringResponse HandleRequest(StringRequest&& req) { - // Подставьте сюда код из синхронной версии HTTP-сервера + auto route = req.target(); + return MakeStringResponse(http::status::ok, "Hello, World!"sv, req.version(),