From 6bdf82b59da6e7dcdeae3af8e5ab3ae89382f8a7 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 20 Jan 2017 01:36:35 +0000 Subject: [PATCH] CmakeLists.txt modified --- CMakeLists.txt | 7 +------ main.cpp | 5 +++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 466e009..571de21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,5 @@ cmake_minimum_required(VERSION 2.8) -#list(INSERT - # CMAKE_MODULE_PATH 0 ${PROJECT_SOURCE_DIR}/cmake) -set(CMAKE_MODULE_PATH - ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) - set(PROJECT_NAME xmrblocks) @@ -191,7 +186,7 @@ set(LIBRARIES crypto ssl) -if (!APPLE) +if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") set(LIBRARIES ${LIBRARIES} unwind) endif() diff --git a/main.cpp b/main.cpp index b69efe6..f626e1a 100644 --- a/main.cpp +++ b/main.cpp @@ -304,6 +304,11 @@ int main(int ac, const char* av[]) { return xmrblocks.search(string(req.url_params.get("value"))); }); + CROW_ROUTE(app, "/mempool") + ([&](const crow::request& req) { + return xmrblocks.mempool(); + }); + CROW_ROUTE(app, "/robots.txt") ([&]() { string text = "User-agent: *\n"