Compare commits

..

No commits in common. "42295e555040e8cbc41c5a68aa54abaf84163ba5" and "2409ec8f5af35bc101b15d77349805bf37a504cc" have entirely different histories.

5 changed files with 13 additions and 24 deletions

22
.gitignore vendored
View File

@ -1,15 +1,15 @@
# CMake build directories # CMake build directories
CMakeFiles/ /build*/
CMakeCache.txt /CMakeFiles/
cmake_install.cmake /CMakeCache.txt
*.cmake /cmake_install.cmake
*.cbp /*.cmake
*.layout /*.cbp
*.stackdump /*.layout
CPackConfig.cmake /*.stackdump
Makefile /CPackConfig.cmake
CTestTestfile.cmake /Makefile
install_manifest.txt /CTestTestfile.cmake
# Compiled binaries # Compiled binaries
/bin/ /bin/

View File

@ -49,7 +49,7 @@ set_target_properties(${EXECUTABLE_NAME} PROPERTIES LINK_FLAGS
set(SERVICE_EXECUTABLE "/services/gh-wh-handler/${EXECUTABLE_NAME}") set(SERVICE_EXECUTABLE "/services/gh-wh-handler/${EXECUTABLE_NAME}")
set(SERVICE_CONFIG "/services/gh-wh-handler/config.json") set(SERVICE_CONFIG "/services/gh-wh-handler/config.json")
configure_file( configure_file(
"${CMAKE_CURRENT_BINARY_DIR}/gh-wh-handler.service.in" "${CMAKE_CURRENT_SOURCE_DIR}/gh-wh-handler.service.in"
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/gh-wh-handler.service" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/gh-wh-handler.service"
@ONLY) @ONLY)
install(CODE "file(MAKE_DIRECTORY /services/gh-wh-handler)") install(CODE "file(MAKE_DIRECTORY /services/gh-wh-handler)")
@ -65,7 +65,7 @@ install(CODE "execute_process(COMMAND systemctl start gh-wh-handler)")
if(NOT TARGET uninstall) if(NOT TARGET uninstall)
configure_file( configure_file(
"${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake.in" "${CMAKE_CURRENT_SOURCE_DIR}/uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake" IMMEDIATE @ONLY) "${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake" IMMEDIATE @ONLY)
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake) add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake)
endif() endif()

View File

@ -8,17 +8,6 @@ Routes::Routes(nlohmann::json config) {
const nlohmann::json config_run_scripts = config["run-scripts"]; const nlohmann::json config_run_scripts = config["run-scripts"];
const nlohmann::json config_tokens = config["tokens"]; const nlohmann::json config_tokens = config["tokens"];
CROW_ROUTE(this->app, "/")
.methods("POST"_method)
.name("Ping")
([]() {
nlohmann::json response = {
{"status", 200},
{"message", "Pong"}
};
return crow::response(200, response.dump());
});
CROW_ROUTE(this->app, "/update-files") CROW_ROUTE(this->app, "/update-files")
.methods("POST"_method) .methods("POST"_method)
.name("Update Files") .name("Update Files")