From 59cbf0207565557fd417ddb62ccc9b96e06c35af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedek=20L=C3=A1szl=C3=B3?= Date: Fri, 17 May 2024 19:26:45 +0200 Subject: [PATCH] http: flags --- src/graph/plugins/http/CMakeLists.txt | 2 +- src/graph/plugins/http/http.cpp | 3 --- src/graph/server/CMakeLists.txt | 6 ------ 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/graph/plugins/http/CMakeLists.txt b/src/graph/plugins/http/CMakeLists.txt index 6b88d2a..5e60b87 100644 --- a/src/graph/plugins/http/CMakeLists.txt +++ b/src/graph/plugins/http/CMakeLists.txt @@ -2,5 +2,5 @@ find_package(nlohmann_json 3 REQUIRED) file(GLOB_RECURSE HTTP_SOURCES "./*.cpp") add_library(http SHARED ${HTTP_SOURCES}) -target_link_libraries(http librum.a libflags-cpp.a nlohmann_json::nlohmann_json) +target_link_libraries(http librum.so libflags-cpp.so nlohmann_json::nlohmann_json) set_target_properties(http PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/plugins") \ No newline at end of file diff --git a/src/graph/plugins/http/http.cpp b/src/graph/plugins/http/http.cpp index 2389d99..e35377d 100644 --- a/src/graph/plugins/http/http.cpp +++ b/src/graph/plugins/http/http.cpp @@ -56,9 +56,6 @@ int run() { }); server->add_path("/add", [](const Request& req, Response& resp) { - std::cout << (std::string)req << std::endl; - // std::cout << req.get_body() << std::endl; - try { json data = json::parse(req.get_body()); if (!data.contains("chart") || !data["chart"].is_number_integer() || !data.contains("series") || !data["series"].is_string() || diff --git a/src/graph/server/CMakeLists.txt b/src/graph/server/CMakeLists.txt index 243d671..e16342f 100644 --- a/src/graph/server/CMakeLists.txt +++ b/src/graph/server/CMakeLists.txt @@ -8,12 +8,6 @@ file(GLOB_RECURSE SERVER_UI "*.ui") file(GLOB_RECURSE SERVER_RES "*.qrc") file(GLOB_RECURSE SERVER_HEADERS "../../../inc/graph/server/*.h") -# cmake_print_variables(SERVER_SOURCES) -# cmake_print_variables(SERVER_UI) -# cmake_print_variables(SERVER_RES) -# cmake_print_variables(SERVER_HEADERS) -# cmake_print_variables(CMAKE_BINARY_DIR) - qt_wrap_cpp(SERVER_GEN_SRC ${SERVER_SRC}) qt_wrap_ui(SERVER_GEN_UI ${SERVER_UI})