From 5187a6771ef11af4f9e53003c5ed1fd49522a26a Mon Sep 17 00:00:00 2001 From: Tiago Garcia Date: Thu, 18 Jul 2024 01:40:32 +0100 Subject: [PATCH] Minor dev changes Signed-off-by: Tiago Garcia --- include/routes.hpp | 1 - src/endpoints/run-scripts.cpp | 1 + src/main.cpp | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/routes.hpp b/include/routes.hpp index 8d4f4a8..680e016 100644 --- a/include/routes.hpp +++ b/include/routes.hpp @@ -4,7 +4,6 @@ class Routes { public: Routes(nlohmann::json); - ~Routes(); private: crow::SimpleApp app; diff --git a/src/endpoints/run-scripts.cpp b/src/endpoints/run-scripts.cpp index 3cad475..4fd7ccd 100644 --- a/src/endpoints/run-scripts.cpp +++ b/src/endpoints/run-scripts.cpp @@ -2,5 +2,6 @@ crow::response run_scripts(const nlohmann::json &run_scripts, const nlohmann::json &tokens, const crow::request &req) { // TODO: Implement run_scripts + return crow::response(501); } diff --git a/src/main.cpp b/src/main.cpp index 9b7ebe1..6bd64b0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,7 +15,7 @@ void signal_handler(const int signum) { int main(int argc, char **argv) { // Check for config file argument, exit if it's not there if (argc < 2 || argc > 2) { - std::cerr << "Usage: " << 0[argv] << " " << std::endl; + std::cerr << "Usage: " << 0[argv] << " " << std::endl; return 1; }