mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
CmakeLists.txt modified
This commit is contained in:
parent
22c09ab5d4
commit
6bdf82b59d
2 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||
|
||||
|
|
5
main.cpp
5
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"
|
||||
|
|
Loading…
Reference in a new issue